diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 11:44:41 +0300 |
|---|---|---|
| committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
| commit | deb3ccae0c5befe7b365c50d6666b201692d2e69 (patch) | |
| tree | 0b9317ddfb4c54428fb13439fe52515a3e64cc25 /testing | |
| parent | eb3053bbc7c35f205fc05510cc5885324bd5d6f6 (diff) | |
| download | aports-deb3ccae0c5befe7b365c50d6666b201692d2e69.tar.bz2 aports-deb3ccae0c5befe7b365c50d6666b201692d2e69.tar.xz | |
testing/perl-yaml-libyaml: new aport
http://search.cpan.org/dist/YAML-LibYAML/
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/perl-yaml-libyaml/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-yaml-libyaml/APKBUILD b/testing/perl-yaml-libyaml/APKBUILD new file mode 100644 index 0000000000..0c6ec4122b --- /dev/null +++ b/testing/perl-yaml-libyaml/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-yaml-libyaml +_pkgreal=YAML-LibYAML +pkgver=0.65 +pkgrel=0 +pkgdesc="Perl YAML Serialization using XS and libyaml" +url="http://search.cpan.org/dist/YAML-LibYAML/" +arch="all" +license="GPL PerlArtistic" +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" |
