aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-provide
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-09-19 14:18:52 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-09-19 14:19:54 +0000
commite5389eda58432d0017f4aa96f8a978c16e3b53c7 (patch)
tree91a932864e58ee77747e705980647f45eddc262e /testing/perl-provide
parent221e23c743a1131a59ced7052a16ecc1f5b2a58c (diff)
downloadaports-e5389eda58432d0017f4aa96f8a978c16e3b53c7.tar.bz2
aports-e5389eda58432d0017f4aa96f8a978c16e3b53c7.tar.xz
testing/perl-provide: new aport
Diffstat (limited to 'testing/perl-provide')
-rw-r--r--testing/perl-provide/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-provide/APKBUILD b/testing/perl-provide/APKBUILD
new file mode 100644
index 0000000000..6dc7465082
--- /dev/null
+++ b/testing/perl-provide/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-provide
+_pkgreal=provide
+pkgver=0.03
+pkgrel=0
+pkgdesc="easily choose between different version-specific implementations"
+url="http://search.cpan.org/dist/provide/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/B/BE/BELDEN/$_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="213587bbc758179d39c40285d83fe575 provide-0.03.tar.gz"
+sha256sums="565c8a5e4b09e6724bf8a2df33a4364e98c05dd7d2835821457a2f787cfe2446 provide-0.03.tar.gz"
+sha512sums="d16762c4c2ecc69619904d9eb81cbc75dc253f85bf2c52ec17d08b3fa64ebf1897521e9d60cb541884e9ccf0fe0b51420eb57d4b09daabeda29ea00d8a90f6f1 provide-0.03.tar.gz"