diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 11:18:41 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:23 +0300 |
commit | 3439e1001833d6560d5e8f612d1f556ecf14ed94 (patch) | |
tree | ec2d925506837aae3498fc356a5ecf323b793964 /testing/perl-clone-pp | |
parent | 897a264407fc0279a925634535410600d2c88bbb (diff) | |
download | aports-3439e1001833d6560d5e8f612d1f556ecf14ed94.tar.bz2 aports-3439e1001833d6560d5e8f612d1f556ecf14ed94.tar.xz |
testing/perl-clone-pp: new aport
http://search.cpan.org/dist/Clone-PP/
Diffstat (limited to 'testing/perl-clone-pp')
-rw-r--r-- | testing/perl-clone-pp/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-clone-pp/APKBUILD b/testing/perl-clone-pp/APKBUILD new file mode 100644 index 0000000000..483ebd53d2 --- /dev/null +++ b/testing/perl-clone-pp/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-clone-pp +_pkgreal=Clone-PP +pkgver=1.07 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/Clone-PP/" +arch="noarch" +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/N/NE/NEILB/$_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="28faae5dc42ff5ae850fe9f664dca8b52ff77823c5f157c62c52254fa4f1e217d3344f6e79a2ddad169f934e7be262dc79f32e885cb1d25db182050800ac805a Clone-PP-1.07.tar.gz" |