aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-b-hooks-endofscope/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2014-12-25 14:57:55 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2014-12-25 14:57:55 +0000
commitd3baf72415ee726ca1f2efea31a7ba8baa69f327 (patch)
tree55d7f5281b1b7377c110c09e498004def9513250 /main/perl-b-hooks-endofscope/APKBUILD
parent09d176335899dcb0f0d7a3f67444d05ad0af6008 (diff)
downloadaports-d3baf72415ee726ca1f2efea31a7ba8baa69f327.tar.bz2
aports-d3baf72415ee726ca1f2efea31a7ba8baa69f327.tar.xz
testing/perl-b-hooks-endofscope: moved to main
Diffstat (limited to 'main/perl-b-hooks-endofscope/APKBUILD')
-rw-r--r--main/perl-b-hooks-endofscope/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-b-hooks-endofscope/APKBUILD b/main/perl-b-hooks-endofscope/APKBUILD
new file mode 100644
index 0000000000..9348eee5da
--- /dev/null
+++ b/main/perl-b-hooks-endofscope/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-b-hooks-endofscope
+_pkgreal=B-Hooks-EndOfScope
+pkgver=0.13
+pkgrel=0
+pkgdesc="Execute code after a scope finished compilation"
+url="http://search.cpan.org/dist/B-Hooks-EndOfScope/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-sub-exporter-progressive perl-module-runtime perl-module-implementation perl-variable-magic"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="6cdaaa88a39054cd13aacad7bd2171da B-Hooks-EndOfScope-0.13.tar.gz"
+sha256sums="f17ef12e1ea7667dc072edb2ee5bcfc54359ad77e60163a56b43383e1705adb8 B-Hooks-EndOfScope-0.13.tar.gz"
+sha512sums="bf2237e40be32f1d26831d1a1257d9e7a9a20b5524d55bea550e8fdadb58e512ec4f855cc4398f64dcf2051c123cdeed82c02926eb2b90897c4a8d52cbf0f3cf B-Hooks-EndOfScope-0.13.tar.gz"