From 158f322bb525696999b46daec154f2ec118a506d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 1 Oct 2018 02:48:44 +0000 Subject: user/perl-file-which: new package, new hatred of perl --- user/perl-file-which/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/perl-file-which/APKBUILD 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2