aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-super/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-super/APKBUILD')
-rw-r--r--main/perl-super/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-super/APKBUILD b/main/perl-super/APKBUILD
new file mode 100644
index 00000000000..1ca7b37c0f2
--- /dev/null
+++ b/main/perl-super/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-super
+_pkgname=SUPER
+pkgver=1.20141117
+pkgrel=0
+pkgdesc="Control superclass method dispatch"
+url="https://metacpan.org/pod/SUPER"
+arch="noarch"
+license="Artistic GPL-2.0"
+depends="perl"
+makedepends="perl-dev perl-module-build perl-sub-identify"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/SUPER-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="c17fe478fcb9ebc2749c27fc75b839bd77e81c9d0170697b2a697dcebb9f4eef4b954d023b76d33a8b4201b110e5e997b1e0993faf7a04ef2e1191a2f7c516a0 SUPER-1.20141117.tar.gz"