diff options
author | Nathan Johnson <nathan@nathanjohnson.info> | 2016-02-29 15:22:34 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-03-02 12:18:09 +0000 |
commit | de1318ddc85963b162254ed369fee131dec82333 (patch) | |
tree | 6fb1d9c897942cbafd793fc7b665d6703a44be53 /testing/perl-constant-generate | |
parent | 0f79ca454f3f7d7ae00997cb41fbb4ec518f89a7 (diff) | |
download | aports-de1318ddc85963b162254ed369fee131dec82333.tar.bz2 aports-de1318ddc85963b162254ed369fee131dec82333.tar.xz |
testing/perl-constant-generate: new aport
http://search.cpan.org/dist/Constant-Generate/
Common tasks for symbolic constants
Diffstat (limited to 'testing/perl-constant-generate')
-rw-r--r-- | testing/perl-constant-generate/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-constant-generate/APKBUILD b/testing/perl-constant-generate/APKBUILD new file mode 100644 index 0000000000..74c0906fc2 --- /dev/null +++ b/testing/perl-constant-generate/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Nathan Johnson <nathan@nathanjohnson.info> +# Maintainer: Nathan Johnson <nathan@nathanjohnson.info> +pkgname=perl-constant-generate +_pkgreal=Constant-Generate +pkgver=0.17 +pkgrel=0 +pkgdesc="Common tasks for symbolic constants" +url="http://search.cpan.org/dist/Constant-Generate/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MN/MNUNBERG/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + 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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="61636afc1c0be17bc8a26ec4031eae13 Constant-Generate-0.17.tar.gz" +sha256sums="fb34eef48d7c18fe445fa2651c68d65877adc71ee674233bd11989c40c4eb870 Constant-Generate-0.17.tar.gz" +sha512sums="6984d101ec26e7d2c35b45124a6d0240910acd30f47b9947a574e3dcd5d9365bb2d1773daae30c61237b903da929b564272aaf505f446a5e7b24a50970335a21 Constant-Generate-0.17.tar.gz" |