summaryrefslogtreecommitdiff
path: root/user/perl-file-sharedir/APKBUILD
diff options
context:
space:
mode:
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"