aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-file-pushd
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-file-pushd')
-rw-r--r--community/perl-file-pushd/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/perl-file-pushd/APKBUILD b/community/perl-file-pushd/APKBUILD
new file mode 100644
index 0000000000..fa97f87bad
--- /dev/null
+++ b/community/perl-file-pushd/APKBUILD
@@ -0,0 +1,34 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-file-pushd
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=File-pushd
+pkgver=1.016
+pkgrel=0
+pkgdesc="change directory temporarily for a limited scope"
+url="https://metacpan.org/release/File-pushd/"
+arch="noarch"
+license="Apache-2.0"
+depends="perl"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="f80f24831c28aed6efcb036db8da2404aadf1005ed751a82c10071a24572c05758eb1785cd9d1f9fdee86a20cf83b41bd73125862d8d24bfa240cc0d6b33ccdd File-pushd-1.016.tar.gz"