blob: f4bfa579b4724d806c66e0ebe8448f341a0b50a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-time-timegm
_pkgreal=Time-timegm
pkgver=0.01
pkgrel=4
pkgdesc="a UTC version of C<mktime()>"
url="https://metacpan.org/release/Time-timegm"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-extutils-cchecker"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL installdirs=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build
}
package() {
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
./Build test
}
sha512sums="cd7cc8962ccfad353d290d4f5113c8dfe362fdaeb535b843b5007b3a89396ca48ff14a7eb040c14a52dfd0af5c243cdde7d6f5f100c12eb4d133a4de931dd42a Time-timegm-0.01.tar.gz"
|