aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-posix-strftime-compiler/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-05 08:19:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-05 08:25:16 +0000
commit2c9549eb5a2e83d118a14808b02670118ef790c2 (patch)
tree7b07284909c36917ce390ea9b133035745faeb55 /main/perl-posix-strftime-compiler/APKBUILD
parentee3ca86649c9e180d81d367404d7ef81170c858f (diff)
downloadaports-2c9549eb5a2e83d118a14808b02670118ef790c2.tar.bz2
aports-2c9549eb5a2e83d118a14808b02670118ef790c2.tar.xz
main/perl-posix-strftime-compiler: new aport
Diffstat (limited to 'main/perl-posix-strftime-compiler/APKBUILD')
-rw-r--r--main/perl-posix-strftime-compiler/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/perl-posix-strftime-compiler/APKBUILD b/main/perl-posix-strftime-compiler/APKBUILD
new file mode 100644
index 0000000000..bc62ad8906
--- /dev/null
+++ b/main/perl-posix-strftime-compiler/APKBUILD
@@ -0,0 +1,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"
+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"