diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-15 10:33:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-15 12:33:13 +0000 |
commit | e575eacf4ce7011c040d7cb79906c4e54ab28c79 (patch) | |
tree | 045659b3998f8d91e2edd3bc0dddf38616b71aec /main/perl-sub-quote/APKBUILD | |
parent | ec7f36322938484217795777825648e1e8305821 (diff) | |
download | aports-e575eacf4ce7011c040d7cb79906c4e54ab28c79.tar.bz2 aports-e575eacf4ce7011c040d7cb79906c4e54ab28c79.tar.xz |
main/perl-sub-quote: move from community
needed by perl-specio
Diffstat (limited to 'main/perl-sub-quote/APKBUILD')
-rw-r--r-- | main/perl-sub-quote/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/perl-sub-quote/APKBUILD b/main/perl-sub-quote/APKBUILD new file mode 100644 index 0000000000..fa8bf85a01 --- /dev/null +++ b/main/perl-sub-quote/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-sub-quote +_pkgreal=Sub-Quote +pkgver=2.004000 +pkgrel=0 +pkgdesc="Efficient generation of subroutines via string eval" +url="http://search.cpan.org/dist/Sub-Quote/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="perl-test-fatal" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_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="222354896728154da7bfc6ef9d4562430ab250b1e1169330f63b43eef01527785c1c8559c5eb77a8d42484187be74a9ff97b325bb2404a205a6d4b990f8656c5 Sub-Quote-2.004000.tar.gz" |