summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"