summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-09-16 13:58:47 -0400
committerMax Rees <maxcrees@me.com>2018-09-16 13:58:47 -0400
commit49147595dcbaf5195f067b7e6bc52b2cdbf21ee6 (patch)
tree1f80bfdf462d19efdb038fa216c594a59ed369b7 /user
parente956853544cfbb593dd087a00e079e3dbb586def (diff)
downloadpackages-49147595dcbaf5195f067b7e6bc52b2cdbf21ee6.tar.gz
packages-49147595dcbaf5195f067b7e6bc52b2cdbf21ee6.tar.bz2
packages-49147595dcbaf5195f067b7e6bc52b2cdbf21ee6.tar.xz
packages-49147595dcbaf5195f067b7e6bc52b2cdbf21ee6.zip
user/perl-sub-exporter: new package
Diffstat (limited to 'user')
-rw-r--r--user/perl-sub-exporter/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/perl-sub-exporter/APKBUILD b/user/perl-sub-exporter/APKBUILD
new file mode 100644
index 000000000..174da8d4b
--- /dev/null
+++ b/user/perl-sub-exporter/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-sub-exporter
+_pkgreal=Sub-Exporter
+pkgver=0.987
+pkgrel=0
+pkgdesc="A sophisticated exporter for custom-built routines"
+url="https://metacpan.org/release/Sub-Exporter"
+arch="noarch"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+cpandepends="perl-data-optlist perl-sub-install perl-params-util"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/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
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="6b682d27a0df8ce971ea48aeca5162e1c70929c51cf27119b30361477876b0b86ecb15ab13a6c3cbe5bb85be9e600589fb9e3c9c4e94bad3fc05b675d293adad Sub-Exporter-0.987.tar.gz"