aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-time-unix
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 12:54:57 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 12:54:57 +0000
commitad11aeb5bbd77429bee5b0e6720d11e099425ee0 (patch)
treec283c6209ef52e38b764c9018518d48151ebb900 /testing/perl-time-unix
parent4ca27a8a56fa95a28a6abf2d4a1e26060324d42a (diff)
downloadaports-ad11aeb5bbd77429bee5b0e6720d11e099425ee0.tar.bz2
aports-ad11aeb5bbd77429bee5b0e6720d11e099425ee0.tar.xz
testing/perl-time-unix: new aport
Diffstat (limited to 'testing/perl-time-unix')
-rw-r--r--testing/perl-time-unix/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-time-unix/APKBUILD b/testing/perl-time-unix/APKBUILD
new file mode 100644
index 0000000000..5d1583954d
--- /dev/null
+++ b/testing/perl-time-unix/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-time-unix
+_pkgreal=Time-Unix
+pkgver=1.03
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Time-Unix/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/N/NW/NWIGER/$_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="dbf8b0bf572be52696ac41da014495d2 Time-Unix-1.03.tar.gz"