diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-07-12 15:01:57 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-12 12:19:58 +0000 |
commit | f5d37694d5b94bf203bdb131c181d19f50f33872 (patch) | |
tree | abeb65d23832476ede13b41ab3f572ae5d1f4194 /main/perl-yaml-libyaml/APKBUILD | |
parent | 37b95ab618686b6a727410e53035112e8484f6cd (diff) | |
download | aports-f5d37694d5b94bf203bdb131c181d19f50f33872.tar.bz2 aports-f5d37694d5b94bf203bdb131c181d19f50f33872.tar.xz |
rename: main/perl-yaml-xs -> main/perl-yaml-libyaml
Diffstat (limited to 'main/perl-yaml-libyaml/APKBUILD')
-rw-r--r-- | main/perl-yaml-libyaml/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/perl-yaml-libyaml/APKBUILD b/main/perl-yaml-libyaml/APKBUILD new file mode 100644 index 0000000000..7d38bc0147 --- /dev/null +++ b/main/perl-yaml-libyaml/APKBUILD @@ -0,0 +1,50 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Valery Kartel <valery.kartel@gmail.com> +pkgname=perl-yaml-libyaml +_pkgreal=YAML-LibYAML +pkgver=0.65 +pkgrel=1 +pkgdesc="Perl YAML Serialization using XS and libyaml" +url="http://search.cpan.org/dist/YAML-LibYAML/" +arch="all" +license="GPL PerlArtistic" +provides=perl-yaml-xs +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TI/TINITA/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="87998f9d8458476168c06e984696ac562e77f6cfc252c57a8159bb45353bacab7fa159c983275f08fcd54479d7a994feebc2568f51b564d685d99cc66ee87cf0 YAML-LibYAML-0.65.tar.gz" |