aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-posix-strftime-compiler/APKBUILD
blob: 7bfaeacda0e9c4eaec220721a124443598710e7c (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
# 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.42
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 perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build
}

check() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build test
}

package() {
	cd "$builddir"
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0c07f1b8589b067533c65a023dd634a29640cb8992aae8047aa1063affe6b30b95930479829982a30a13b87bc7c9ebf82ca4837726bd29658d85d718164e3c76  POSIX-strftime-Compiler-0.42.tar.gz"