aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-time-hires/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-time-hires/APKBUILD')
-rw-r--r--main/perl-time-hires/APKBUILD45
1 files changed, 19 insertions, 26 deletions
diff --git a/main/perl-time-hires/APKBUILD b/main/perl-time-hires/APKBUILD
index 453e9986adc..8645529a083 100644
--- a/main/perl-time-hires/APKBUILD
+++ b/main/perl-time-hires/APKBUILD
@@ -1,46 +1,39 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-time-hires
-_pkgname=Time-HiRes
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Time-HiRes
pkgver=1.9764
-pkgrel=2
+pkgrel=7
pkgdesc="High resolution alarm, sleep, gettimeofday, interval timers"
-url="http://search.cpan.org/~jhi/Time-HiRes/"
+url="https://metacpan.org/release/Time-HiRes/"
arch="all"
-license="GPL-1.0-only Artistic-1.0-Perl"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
makedepends="perl-dev"
-subpackages="$pkgname-doc"
-options="!check" # see comment below
source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Time-HiRes-$pkgver.tar.gz"
-builddir="$srcdir/$_pkgname-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
-prepare() {
- default_prepare
+build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
}
-build() {
+check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make
+ make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
-}
-
-check() {
- # tests depends on hi res support of timestamps in filesystem
- # we cannot guarantee that we have that so skip tests for now
- # make test
- return 0
-}
-doc() {
- default_doc
- replaces="perl-doc"
+ # man pages are already provided by perl-doc
+ rm -rf "$pkgdir"/usr/share/man
}
-sha512sums="2c250784e0375539690173eaf19390389c59c218dade036ff150e2e4445e7916438d9598000bc3dbffaa2da5ee183850dedf0b6d9c99d76bfc75bb23fa7022bc Time-HiRes-1.9764.tar.gz"
+sha512sums="
+2c250784e0375539690173eaf19390389c59c218dade036ff150e2e4445e7916438d9598000bc3dbffaa2da5ee183850dedf0b6d9c99d76bfc75bb23fa7022bc Time-HiRes-1.9764.tar.gz
+"