diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 12:18:14 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 12:18:14 +0000 |
commit | 7f64e0ead5d452752cfabb51284d2b8f28476031 (patch) | |
tree | 35eecf7121069fff550bffa729a2742f449c4fb8 /testing/perl-tie-tz | |
parent | ffd6961b8bbabeed8a562620e77aad07c7a6d890 (diff) | |
download | aports-7f64e0ead5d452752cfabb51284d2b8f28476031.tar.bz2 aports-7f64e0ead5d452752cfabb51284d2b8f28476031.tar.xz |
testing/perl-tie-tz: new aport
Diffstat (limited to 'testing/perl-tie-tz')
-rw-r--r-- | testing/perl-tie-tz/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-tie-tz/APKBUILD b/testing/perl-tie-tz/APKBUILD new file mode 100644 index 0000000000..8a88adddf1 --- /dev/null +++ b/testing/perl-tie-tz/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-tie-tz +_pkgreal=Tie-TZ +pkgver=9 +pkgrel=0 +pkgdesc="Tied TZ env var calling tzset() when changed." +url="http://search.cpan.org/dist/Tie-TZ/" +arch="noarch" +license="open_source" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_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="4402c26b5a25378c67d556f8217a961f Tie-TZ-9.tar.gz" |