diff options
author | TBK <tbk@jjtc.dk> | 2018-04-24 00:42:20 +0200 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-08 08:55:04 +0000 |
commit | 017672651a160248ff8a826d74b2328a9f0fe3cc (patch) | |
tree | 9d4042faa62e7730c71384d373c87c1c660c34a7 /main/perl-posix-strftime-compiler/APKBUILD | |
parent | d3d45ff34b9a2440eaf850391aec65317e11f000 (diff) | |
download | aports-017672651a160248ff8a826d74b2328a9f0fe3cc.tar.bz2 aports-017672651a160248ff8a826d74b2328a9f0fe3cc.tar.xz |
main/perl-posix-strftime-compiler: modernize
Diffstat (limited to 'main/perl-posix-strftime-compiler/APKBUILD')
-rw-r--r-- | main/perl-posix-strftime-compiler/APKBUILD | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/main/perl-posix-strftime-compiler/APKBUILD b/main/perl-posix-strftime-compiler/APKBUILD index ba1b0bc932..b3861c5b65 100644 --- a/main/perl-posix-strftime-compiler/APKBUILD +++ b/main/perl-posix-strftime-compiler/APKBUILD @@ -10,42 +10,36 @@ url="http://search.cpan.org/dist/POSIX-strftime-Compiler/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +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 - musl-fix.patch - " - -_builddir="$srcdir/$_pkgreal-$pkgver" +source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/$_pkgreal-$pkgver.tar.gz" +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 + default_prepare + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor } build() { - cd "$_builddir" + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build +} + +check() { + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + ./Build test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="3cb849778e00f5d3894e7e78c2e629ce POSIX-strftime-Compiler-0.41.tar.gz -d484ef159d6abdc6aa4d7dd0f19d54a8 musl-fix.patch" -sha256sums="670b89e11500f3808c9e21b1c300089622f68906ff12b1cbfba8e30d3a1c3739 POSIX-strftime-Compiler-0.41.tar.gz -543a8537eae03003de95f035e67b7625005280c3df62557e885ea7a519583d3c musl-fix.patch" -sha512sums="b613de3fb332313318cca8a6c8912b64e9dac702d5681d252dc8eb919c7b102354ad25f60b537cdfa66203e01826b34a5a349a2fac856a6affb40d5f160725fe POSIX-strftime-Compiler-0.41.tar.gz -b9615f0453548dab8d663abdb7fe5fd9a5a6db2fbbeb38de22c65859db5e7dcd90c46837297886737fda64a6d11bc4ab06ed51a45c2fccb9fcda5cf10abacd8b musl-fix.patch" +sha512sums="0c07f1b8589b067533c65a023dd634a29640cb8992aae8047aa1063affe6b30b95930479829982a30a13b87bc7c9ebf82ca4837726bd29658d85d718164e3c76 POSIX-strftime-Compiler-0.42.tar.gz" |