summaryrefslogtreecommitdiffstats
path: root/testing/perl-package-stash-xs/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-package-stash-xs/APKBUILD')
-rw-r--r--testing/perl-package-stash-xs/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/perl-package-stash-xs/APKBUILD b/testing/perl-package-stash-xs/APKBUILD
new file mode 100644
index 000000000..3a7450a19
--- /dev/null
+++ b/testing/perl-package-stash-xs/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-package-stash-xs
+_pkgreal=Package-Stash-XS
+pkgver=0.25
+pkgrel=0
+pkgdesc="faster and more correct implementation of the Package::Stash API"
+url="http://search.cpan.org/dist/Package-Stash-XS/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends perl-test-fatal"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DO/DOY/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="52ece18842c46da8fb7a4a14dea910ab Package-Stash-XS-0.25.tar.gz"