From 204787c61fb1576177da79ee4d032f8f5a71bc13 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 17 Nov 2018 22:44:08 +0000 Subject: user/perl-file-sharedir: new package --- user/perl-file-sharedir/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-file-sharedir/APKBUILD diff --git a/user/perl-file-sharedir/APKBUILD b/user/perl-file-sharedir/APKBUILD new file mode 100644 index 000000000..6c914ae59 --- /dev/null +++ b/user/perl-file-sharedir/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +pkgname=perl-file-sharedir +_pkgname=File-ShareDir +pkgver=1.116 +pkgrel=0 +pkgdesc="Locate files shared by Perl modules" +url="https://metacpan.org/release/File-ShareDir" +arch="noarch" +license="Artistic-1.0-Perl OR GPL-2.0-only" +depends="perl-class-inspector perl-file-sharedir-install perl-list-moreutils perl-params-util" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-$pkgver.tar.gz" +builddir="$srcdir/File-ShareDir-$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="5fcd75254c446f02ee377e6b5848baad95c73779b8525b0ee1699fe675ddd2bd67d0dc057f47b0991ec136de16e06a4891a4b14a78bd96c3e2468640053bbe0e File-ShareDir-1.116.tar.gz" -- cgit v1.2.3-70-g09d2