summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 14:25:07 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 14:25:07 +0000
commit72230056db163c2fbb5cee292bcf4559991c0c92 (patch)
tree2f60301221be7f5b9d7253e0e7807e2aac302de1 /testing
parentf2b130b79a84cad1338b92cd9d569a0d8551623f (diff)
downloadaports-72230056db163c2fbb5cee292bcf4559991c0c92.tar.bz2
aports-72230056db163c2fbb5cee292bcf4559991c0c92.tar.xz
testing/perl-file-type: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-file-type/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-file-type/APKBUILD b/testing/perl-file-type/APKBUILD
new file mode 100644
index 000000000..dc75bef16
--- /dev/null
+++ b/testing/perl-file-type/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-type
+_pkgreal=File-Type
+pkgver=0.22
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/File-Type/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/P/PM/PMISON/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$_builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="4be3b0b7000b325c60351fcc8a04815d File-Type-0.22.tar.gz"