summaryrefslogtreecommitdiff
path: root/user/perl-file-which
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 02:48:44 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 02:48:44 +0000
commit158f322bb525696999b46daec154f2ec118a506d (patch)
tree35b957cf5ca60caffdc1954902d28e8b324e1c90 /user/perl-file-which
parent8dc3c2cad3ce43276c9703e411db232670c4ff47 (diff)
downloadpackages-158f322bb525696999b46daec154f2ec118a506d.tar.gz
packages-158f322bb525696999b46daec154f2ec118a506d.tar.bz2
packages-158f322bb525696999b46daec154f2ec118a506d.tar.xz
packages-158f322bb525696999b46daec154f2ec118a506d.zip
user/perl-file-which: new package, new hatred of perl
Diffstat (limited to 'user/perl-file-which')
-rw-r--r--user/perl-file-which/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-file-which/APKBUILD b/user/perl-file-which/APKBUILD
new file mode 100644
index 000000000..fddd35ce9
--- /dev/null
+++ b/user/perl-file-which/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-file-which
+pkgver=1.22
+pkgrel=0
+pkgdesc="Perl implementation of the which(1) utility as an API"
+url="https://metacpan.org/release/File-Which"
+arch="noarch"
+license="Artistic-1.0-Perl"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Which-$pkgver.tar.gz"
+builddir="$srcdir/File-Which-$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="9efd8cc6d08e82a429ab3b0ec5193cb894432311338dc4cdcb73b4536a40bf4829c414e75e5dcb0d03b9190511b232f1d27e441657afa7299b0a5b882877f2d1 File-Which-1.22.tar.gz"