summaryrefslogtreecommitdiff
path: root/user/perl-file-pushd
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:54:09 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:54:09 +0000
commitbac3031e3933cc7baaea22772b393a3d47bac797 (patch)
tree451d39c64d9f7d09d2273bc8e8ea4213ab983c2e /user/perl-file-pushd
parent09a46eb4d9dce4b2a8534271b98266eb49f0c4f0 (diff)
downloadpackages-bac3031e3933cc7baaea22772b393a3d47bac797.tar.gz
packages-bac3031e3933cc7baaea22772b393a3d47bac797.tar.bz2
packages-bac3031e3933cc7baaea22772b393a3d47bac797.tar.xz
packages-bac3031e3933cc7baaea22772b393a3d47bac797.zip
user/perl-file-pushd: new package
Diffstat (limited to 'user/perl-file-pushd')
-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"