diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-06-25 12:31:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-07-03 13:10:30 +0000 |
commit | 47cb9852084a2dd4a8377a5513f889a1d75bf809 (patch) | |
tree | 109bd861139ce1c5ff747715f9fe770601c198dc /main/perl-file-temp | |
parent | eff029c84a28be84c58ca9756b29cc7649b6de13 (diff) | |
download | aports-47cb9852084a2dd4a8377a5513f889a1d75bf809.tar.bz2 aports-47cb9852084a2dd4a8377a5513f889a1d75bf809.tar.xz |
main/perl-file-temp: upgrade to 0.2306 and modernize
Diffstat (limited to 'main/perl-file-temp')
-rw-r--r-- | main/perl-file-temp/APKBUILD | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/main/perl-file-temp/APKBUILD b/main/perl-file-temp/APKBUILD index 166e09e65a..593a4406b1 100644 --- a/main/perl-file-temp/APKBUILD +++ b/main/perl-file-temp/APKBUILD @@ -2,21 +2,20 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-file-temp _pkgreal=File-Temp -pkgver=0.2304 +pkgver=0.2306 pkgrel=0 -pkgdesc="return name and handle of a temporary file safely" +pkgdesc="Return name and handle of a temporary file safely" url="http://search.cpan.org/dist/File-Temp/" arch="noarch" license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { + default_prepare + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor @@ -25,12 +24,17 @@ prepare() { build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } @@ -39,6 +43,4 @@ doc() { replaces="perl-doc" } -md5sums="c1e19bfcc8cfc440b149a108be54b9d2 File-Temp-0.2304.tar.gz" -sha256sums="13415323e48f7c9f34efdedf3d35141a7c3435e2beb8c6b922229dc317d321ac File-Temp-0.2304.tar.gz" -sha512sums="823acf6ca42eb0548617feec4ce32e24da3fbbcb05d78dadea902e318797ed31bb16ef2b7fee50f79d52adb7dd561b8f97c1b9e11c56ba7d50735efbf639f1db File-Temp-0.2304.tar.gz" +sha512sums="1978038308e2c7aeb64faf7e774d017e9e7a8efcd7168b430d3349c0f02eb74bd0299904762632df7738b5e9bd0c26c168f10bfb63f8425c7cb7e3968e6d3d4a File-Temp-0.2306.tar.gz" |