aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-compress-raw-zlib/APKBUILD
blob: 6f1a6d036456c68c049e5b9398e665a0c0e52200 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-compress-raw-zlib
_realname=Compress-Raw-Zlib
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"
source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/${_realname}-${pkgver}.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

build() {
	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
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete

	# man pages are already provided by perl-doc
	rm -rf "$pkgdir"/usr/share/man
}

sha512sums="8c48fb1730fe9bfb0a6064e4957f0f967c4015e1fb3bed509ff16ce447f7044045222ec84abd9a5529db71c800917d950c0bbbdba424732f132d8af389e13de0  Compress-Raw-Zlib-2.075.tar.gz"