aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-temp/APKBUILD
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-01-23 14:08:56 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-01-23 12:37:51 +0000
commit227b258add04e635c9972b6eb5af23b463eaf44b (patch)
treed0d83f481175d70c07c75c47951ab768be45a738 /main/perl-file-temp/APKBUILD
parent694a5d65118d9a3a308776dcbd82b058a168b325 (diff)
downloadaports-227b258add04e635c9972b6eb5af23b463eaf44b.tar.gz
aports-227b258add04e635c9972b6eb5af23b463eaf44b.tar.bz2
aports-227b258add04e635c9972b6eb5af23b463eaf44b.tar.xz
main/perl-file-temp: upgrade to 0.2304
- fix -doc - apkbuild cleanups
Diffstat (limited to 'main/perl-file-temp/APKBUILD')
-rw-r--r--main/perl-file-temp/APKBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/main/perl-file-temp/APKBUILD b/main/perl-file-temp/APKBUILD
index b6e3a12368..166e09e65a 100644
--- a/main/perl-file-temp/APKBUILD
+++ b/main/perl-file-temp/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-temp
_pkgreal=File-Temp
-pkgver=0.2302
+pkgver=0.2304
pkgrel=0
pkgdesc="return name and handle of a temporary file safely"
url="http://search.cpan.org/dist/File-Temp/"
@@ -14,27 +14,31 @@ depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="799ceb423aa4d2bbb87a00986324e909 File-Temp-0.2302.tar.gz"
-sha256sums="a5dbeced856222bd17e13c903dee9b133757e7c19fb476a1598dde03dc80d1b0 File-Temp-0.2302.tar.gz"
-sha512sums="900dc496d03e3aac231fbf0bb4c4a08fb3cd17dcabe73af9e3771cf56862f4195c839bc666fda5b723994a09209bc679e1ca59ff312a093111c45f8ecf7c34a3 File-Temp-0.2302.tar.gz"
+doc() {
+ default_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"