summaryrefslogtreecommitdiff
path: root/testing/perl-file-homedir
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 12:31:33 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 12:31:33 +0000
commit323f00500fa644c51625531e147b8032bf66cd0a (patch)
tree6e4fa65b82b5504c801713c787f32dd5a01b78f6 /testing/perl-file-homedir
parentac0dd5056912cfb3652537fa852f7d28d4f7e2b2 (diff)
downloadaports-323f00500fa644c51625531e147b8032bf66cd0a.zip
testing/perl-file-homedir: new aport
Diffstat (limited to 'testing/perl-file-homedir')
-rw-r--r--testing/perl-file-homedir/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-file-homedir/APKBUILD b/testing/perl-file-homedir/APKBUILD
new file mode 100644
index 00000000000..0ae2a164ea4
--- /dev/null
+++ b/testing/perl-file-homedir/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-file-homedir
+_pkgreal=File-HomeDir
+pkgver=1.00
+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=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ 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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="aa290cab9db52e2f76280fd1febf794e File-HomeDir-1.00.tar.gz"