summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:40:24 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:40:24 +0000
commit35bb965d48bca7b0e51dbf03c894ac4c82f3efcb (patch)
treef12813b1b96c3bee32e6ab6c2a841ba4838dbb5e
parent8e52158588ba0b11027f59c64791f6d1f084b371 (diff)
downloadpackages-35bb965d48bca7b0e51dbf03c894ac4c82f3efcb.tar.gz
packages-35bb965d48bca7b0e51dbf03c894ac4c82f3efcb.tar.bz2
packages-35bb965d48bca7b0e51dbf03c894ac4c82f3efcb.tar.xz
packages-35bb965d48bca7b0e51dbf03c894ac4c82f3efcb.zip
user/perl-sub-name: new package
-rw-r--r--user/perl-sub-name/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-sub-name/APKBUILD b/user/perl-sub-name/APKBUILD
new file mode 100644
index 000000000..656a7a7ee
--- /dev/null
+++ b/user/perl-sub-name/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-sub-name
+pkgver=0.21
+pkgrel=0
+pkgdesc="Rename a Perl sub"
+url="https://metacpan.org/release/Sub-Name"
+arch="all"
+license="Artistic-1.0-Perl"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Sub-Name-$pkgver.tar.gz"
+builddir="$srcdir/Sub-Name-$pkgver"
+
+build() {
+ cd "$builddir"
+ 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="94be57b569f6c434ec3ef4fdff1a9d946067cf6c7ee58f716f4bc188764ee103f9a2579ee0ddf4068ec6889c186d9d447d8252a5dd2a0e882719239ac1102294 Sub-Name-0.21.tar.gz"