summaryrefslogtreecommitdiff
path: root/user/perl-test-file-sharedir
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 22:51:18 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 22:51:18 +0000
commitab67748386f28886b0353b57c14f59c5061cd147 (patch)
treebd07d30edf48b23432720e35bc38ee8e6b79cdf9 /user/perl-test-file-sharedir
parentfa7bcaa9383b43ce912250e1039df28e4ed2dd1a (diff)
downloadpackages-ab67748386f28886b0353b57c14f59c5061cd147.tar.gz
packages-ab67748386f28886b0353b57c14f59c5061cd147.tar.bz2
packages-ab67748386f28886b0353b57c14f59c5061cd147.tar.xz
packages-ab67748386f28886b0353b57c14f59c5061cd147.zip
user/perl-test-file-sharedir: new package
Diffstat (limited to 'user/perl-test-file-sharedir')
-rw-r--r--user/perl-test-file-sharedir/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-test-file-sharedir/APKBUILD b/user/perl-test-file-sharedir/APKBUILD
new file mode 100644
index 000000000..24ecbc048
--- /dev/null
+++ b/user/perl-test-file-sharedir/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-test-file-sharedir
+_pkgname=Test-File-ShareDir
+pkgver=1.001002
+pkgrel=0
+pkgdesc="Module testing support for Perl"
+url="https://metacpan.org/release/Test-File-ShareDir"
+arch="noarch"
+license="Artistic-1.0-Perl or GPL-2.0-only"
+depends="perl-class-tiny perl-file-copy-recursive perl-file-sharedir
+ perl-path-tiny perl-scope-guard"
+checkdepends="perl-test-fatal"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/K/KE/KENTNL/Test-File-ShareDir-$pkgver.tar.gz"
+builddir="$srcdir/Test-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="858fd7483a63fe4742e48663d64088b811658c9d24dfc730ae1fb5786818949133de98f1cc3a705f67ad97fed1144420a96c22e2cfa663c79953c33f1633f00e Test-File-ShareDir-1.001002.tar.gz"