aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-provide/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/perl-provide/APKBUILD')
-rw-r--r--unmaintained/perl-provide/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-provide/APKBUILD b/unmaintained/perl-provide/APKBUILD
new file mode 100644
index 0000000000..6dc7465082
--- /dev/null
+++ b/unmaintained/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"