blob: 973938b2ee7bf1f30056015f4da95d3f74808c26 (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-compress-raw-bzip2
_pkgname=Compress-Raw-Bzip2
pkgver=2.084
pkgrel=0
pkgdesc="Perl low-level interface to bzip2 compression library"
url="http://search.cpan.org/~pmqs/Compress-Raw-Bzip2-2.024/"
arch="all"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/${_pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd $builddir
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
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
# remove man pages already provided by perl-doc
rm -rf "$pkgdir"/usr/share/man
}
sha512sums="fdc8ff3805d58b2a79dd7ae9e01e43c6f93273197794a18d22b20af83d2915255fb5ceb486865d2b2249b08c1bf990fba164757ab2caffff56bce52abaf3740b Compress-Raw-Bzip2-2.084.tar.gz"
|