blob: 39f06d2d762566927b4e3b47ca76d275d14a5248 (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-posix-strftime-compiler
_pkgreal=POSIX-strftime-Compiler
pkgver=0.40
pkgrel=0
pkgdesc="GNU C library compatible strftime for loggers and servers"
url="http://search.cpan.org/dist/POSIX-strftime-Compiler/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=" "
depends="$cpandepends tzdata"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/$_pkgreal-$pkgver.tar.gz
musl-fix.patch
"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
perl Build.PL installdirs=vendor || return 1
}
build() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test
}
package() {
cd "$_builddir"
./Build install destdir="$pkgdir" || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="6b6fb6e767c42443c0bf91ccd82e34d3 POSIX-strftime-Compiler-0.40.tar.gz
d484ef159d6abdc6aa4d7dd0f19d54a8 musl-fix.patch"
sha256sums="7b4abbe793acc920b10ed14f9e430c69ef778e28fd59e4046d6c35d1c24b6c99 POSIX-strftime-Compiler-0.40.tar.gz
543a8537eae03003de95f035e67b7625005280c3df62557e885ea7a519583d3c musl-fix.patch"
sha512sums="f646636cc03faac5b14c6b0c2f49292bb85c05d4d244f1d0c8e123885780a14ac2b1a12903883b8c41d056315b0a4928a2d3901dcde585a2bbde72bd61538204 POSIX-strftime-Compiler-0.40.tar.gz
b9615f0453548dab8d663abdb7fe5fd9a5a6db2fbbeb38de22c65859db5e7dcd90c46837297886737fda64a6d11bc4ab06ed51a45c2fccb9fcda5cf10abacd8b musl-fix.patch"
|