aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-file-homedir
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:17:52 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commit897a264407fc0279a925634535410600d2c88bbb (patch)
tree44339cc43eaa51ff0eeb47d2bac130dc57e842ee /testing/perl-file-homedir
parent91bd597253b69bb8d355b51ee6c1e8a329eeb689 (diff)
downloadaports-897a264407fc0279a925634535410600d2c88bbb.tar.bz2
aports-897a264407fc0279a925634535410600d2c88bbb.tar.xz
testing/perl-file-homedir: new aport
http://search.cpan.org/dist/File-HomeDir/
Diffstat (limited to 'testing/perl-file-homedir')
-rw-r--r--testing/perl-file-homedir/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-file-homedir/APKBUILD b/testing/perl-file-homedir/APKBUILD
new file mode 100644
index 0000000000..193f890574
--- /dev/null
+++ b/testing/perl-file-homedir/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-file-homedir
+_pkgreal=File-HomeDir
+pkgver=1.002
+pkgrel=0
+pkgdesc="Find your home and other directories on any platform"
+url="http://search.cpan.org/dist/File-HomeDir/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-file-which"
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="4862c78f65785579d4978d3c4d36ba2a71fb78f069b5671d0cedabd6d187fb4377ae40be45b0abfb00df8dd362fbc28032aab2f39acbbe9f1d7bc4a5b24863d4 File-HomeDir-1.002.tar.gz"