aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-temp/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-27 01:50:34 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-27 04:55:38 +0000
commite5490a9cc04fac5abb25436dd2954f5eda9fdeaf (patch)
treeb779e09d947ffc66ee98c0515cca9a210900c578 /main/perl-file-temp/APKBUILD
parenta9e64981ea00f0b5418b40cbd931c19339446c6b (diff)
main/perl-file-temp: upgrade to 0.2310
Diffstat (limited to 'main/perl-file-temp/APKBUILD')
-rw-r--r--main/perl-file-temp/APKBUILD32
1 files changed, 10 insertions, 22 deletions
diff --git a/main/perl-file-temp/APKBUILD b/main/perl-file-temp/APKBUILD
index 666e94a6c4b..4351140cd4d 100644
--- a/main/perl-file-temp/APKBUILD
+++ b/main/perl-file-temp/APKBUILD
@@ -1,46 +1,34 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-temp
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-Temp
-pkgver=0.2309
-pkgrel=2
-pkgdesc="Return name and handle of a temporary file safely"
+pkgver=0.2310
+pkgrel=0
+pkgdesc="return name and handle of a temporary file safely"
url="https://metacpan.org/release/File-Temp/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-Temp-$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
-}
-
build() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-doc() {
- default_doc
- replaces="perl-doc"
-}
-
-sha512sums="9812e35d561ccff310262dc5bc50a9612fb3bbf7765a715c8fcad7653de977d08382733e38978586d47f943152b4a9619b76357c2f823c13f78dbf9b4eb4cd65 File-Temp-0.2309.tar.gz"
+sha512sums="0aa52c3558edd21bfccaf24f8beb1bdf11ae4bc9abae5a4bbc80901461e535cc0e4f9de6732d4e637782713e7df3050edb44895801229dafc3403d6dc2c3db90 File-Temp-0.2310.tar.gz"