summaryrefslogtreecommitdiff
path: root/user/perl-file-sharedir/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 22:44:08 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 22:44:08 +0000
commit204787c61fb1576177da79ee4d032f8f5a71bc13 (patch)
treec51845880257e39dca2ad6a285c25cf4cd5277e3 /user/perl-file-sharedir/APKBUILD
parentc1748fbfd0c16175a0d55b629b560bc7d283fa62 (diff)
downloadpackages-204787c61fb1576177da79ee4d032f8f5a71bc13.tar.gz
packages-204787c61fb1576177da79ee4d032f8f5a71bc13.tar.bz2
packages-204787c61fb1576177da79ee4d032f8f5a71bc13.tar.xz
packages-204787c61fb1576177da79ee4d032f8f5a71bc13.zip
user/perl-file-sharedir: new package
Diffstat (limited to 'user/perl-file-sharedir/APKBUILD')
-rw-r--r--user/perl-file-sharedir/APKBUILD34
1 files changed, 34 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+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"