APKBUILD 1.05 KB
Newer Older
1 2
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
3
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
4 5
pkgname=perl-yaml-syck
_pkgreal=YAML-Syck
Kiyoshi Aman's avatar
Kiyoshi Aman committed
6 7 8
_author=TODDR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
9
pkgver=1.32
10
pkgrel=0
11
pkgdesc="Fast, lightweight YAML loader and dumper"
A. Wilcox's avatar
A. Wilcox committed
12
url="https://metacpan.org/release/YAML-Syck"
13 14
arch="all"
license="MIT"
Kiyoshi Aman's avatar
Kiyoshi Aman committed
15
depends="perl"
A. Wilcox's avatar
A. Wilcox committed
16
makedepends="perl-dev"
17
subpackages="$pkgname-doc"
Kiyoshi Aman's avatar
Kiyoshi Aman committed
18
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
19 20 21 22
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
Kiyoshi Aman's avatar
Kiyoshi Aman committed
23
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
24 25 26 27 28 29 30 31 32 33 34 35
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

36
sha512sums="284d62f1fabdcca9fbdc57b732f5b9b2c2739020c620dbb66e84a89ea83e0a80580ec8fd8516a1c080dd9de9a817dbe357ee66041daa5103a8bf49c436355c99  YAML-Syck-1.32.tar.gz"