aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-compress-raw-zlib
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-11-15 07:10:54 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-11-15 07:14:28 +0000
commit91ebbf8a4a080174425f22979ffdaf80b760181f (patch)
tree71c47ee171ff018abbdc758ef0e314d607a5ba0f /main/perl-compress-raw-zlib
parent4f1abff8ad27d4c6bab10a7c4013cf3d436eebdb (diff)
downloadaports-91ebbf8a4a080174425f22979ffdaf80b760181f.tar.bz2
aports-91ebbf8a4a080174425f22979ffdaf80b760181f.tar.xz
main/perl-compress-raw-zlib: upgrade to 2.075
Modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-compress-raw-zlib')
-rw-r--r--main/perl-compress-raw-zlib/APKBUILD31
1 files changed, 17 insertions, 14 deletions
diff --git a/main/perl-compress-raw-zlib/APKBUILD b/main/perl-compress-raw-zlib/APKBUILD
index 366976e40f..6f1a6d0364 100644
--- a/main/perl-compress-raw-zlib/APKBUILD
+++ b/main/perl-compress-raw-zlib/APKBUILD
@@ -2,34 +2,37 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-compress-raw-zlib
_realname=Compress-Raw-Zlib
-pkgver=2.074
-pkgrel=1
+pkgver=2.075
+pkgrel=0
pkgdesc="Perl low-level interface to zlib compression library"
url="http://search.cpan.org/dist/Compress-Raw-Zlib/"
arch="all"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
-install=
-subpackages=""
source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/${_realname}-${pkgver}.tar.gz"
+builddir="$srcdir/$_realname-$pkgver"
-_builddir="$srcdir/$_realname-$pkgver"
build() {
- cd $_builddir
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- #PERL_MM_USE_DEFAULT=1 perl Makefile.PL || return 1
- make || return 1
+ cd $builddir
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make test
}
package() {
- cd $_builddir
+ cd $builddir
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
# man pages are already provided by perl-doc
- rm -rf "$pkgdir"/usr/share/man || return 1
+ rm -rf "$pkgdir"/usr/share/man
}
-sha512sums="b077133c822ad8402f0576804f51d891fb82ec6ecf4b11464749a6672726a9000c2306e667700cf833afac88213f0b753870fbfd7bd6579c938a03e4a73bc5f8 Compress-Raw-Zlib-2.074.tar.gz"
+sha512sums="8c48fb1730fe9bfb0a6064e4957f0f967c4015e1fb3bed509ff16ce447f7044045222ec84abd9a5529db71c800917d950c0bbbdba424732f132d8af389e13de0 Compress-Raw-Zlib-2.075.tar.gz"