aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-09-04 08:58:37 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-09-04 09:04:48 +0000
commit48dee78f126e9ba330d0014b2625c45e4f58d411 (patch)
treecc24bf7bd12ccba528704ed75aecf7fd3cd50941 /testing
parent63c30b3fd97a172ddd21611c46e9dbf452d4d790 (diff)
downloadaports-48dee78f126e9ba330d0014b2625c45e4f58d411.tar.bz2
aports-48dee78f126e9ba330d0014b2625c45e4f58d411.tar.xz
testing/perl-sub-install: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-sub-install/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-sub-install/APKBUILD b/testing/perl-sub-install/APKBUILD
new file mode 100644
index 0000000000..d7abff7aad
--- /dev/null
+++ b/testing/perl-sub-install/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-sub-install
+_pkgreal=Sub-Install
+pkgver=0.926
+pkgrel=0
+pkgdesc="install subroutines into packages easily"
+url="http://search.cpan.org/dist/Sub-Install/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-test-pod perl-test-pod-coverage"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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="89a7f82dd840bc2401f281b5f24732b9 Sub-Install-0.926.tar.gz"
+sha256sums="acb2496643784976fe8edebc7b412e9a93f6f0825631f5bd9186c810aed1763e Sub-Install-0.926.tar.gz"
+sha512sums="c536e1ace79ce8c6bd4a6e580cc2e181671b54f07cef231a84094c854779aee556de4b2ff0a95f0e6a8aca87f77a6e19d148071a48fe5c6e9c0ca15314f0c9cc Sub-Install-0.926.tar.gz"