aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-compress-raw-bzip2/APKBUILD
blob: dce154b9a2d12537f30cfae9ad79ee19e64ae7da (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-compress-raw-bzip2
_pkgname=Compress-Raw-Bzip2
pkgver=2.204
pkgrel=1
pkgdesc="Perl low-level interface to bzip2 compression library"
url="https://metacpan.org/pod/Compress::Raw::Bzip2"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
source="https://cpan.metacpan.org/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() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	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="
f6036759ad05312ec89ad1010e8eb1dd9d8604504a61d954c50b6476c2f935e0c1eb40b9fa8d7ef0118fde2cf2e43af94cd7c2f0df961fc627042bf193721595  Compress-Raw-Bzip2-2.204.tar.gz
"