diff options
Diffstat (limited to 'unmaintained/perl-tie-tz/APKBUILD')
-rw-r--r-- | unmaintained/perl-tie-tz/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/perl-tie-tz/APKBUILD b/unmaintained/perl-tie-tz/APKBUILD new file mode 100644 index 0000000000..8a88adddf1 --- /dev/null +++ b/unmaintained/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" |