summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-file-pushd/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-file-pushd/APKBUILD b/user/perl-file-pushd/APKBUILD
new file mode 100644
index 000000000..e4c1bd0f4
--- /dev/null
+++ b/user/perl-file-pushd/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-file-pushd
+pkgver=1.016
+pkgrel=0
+pkgdesc="Change directory temporarily in Perl for a limited scope"
+url="https://metacpan.org/release/File-pushd"
+arch="noarch"
+license="Apache-2.0"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-$pkgver.tar.gz"
+builddir="$srcdir/File-pushd-$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="f80f24831c28aed6efcb036db8da2404aadf1005ed751a82c10071a24572c05758eb1785cd9d1f9fdee86a20cf83b41bd73125862d8d24bfa240cc0d6b33ccdd File-pushd-1.016.tar.gz"