aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-archive-zip/APKBUILD
blob: 45f89ee0a8894fae361e2e825a2ffc0504226274 (plain) (blame)
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-archive-zip
_pkgname=Archive-Zip
pkgver=1.67
pkgrel=0
pkgdesc="Provide a perl interface to ZIP archive files."
url="https://metacpan.org/release/Archive-Zip"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-mockmodule perl-super perl-sub-identify perl-test-simple
	zip"
subpackages="$pkgname-doc"
options="!check"
source="https://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="e6e9960b3453831aa11b4b530beb76da4696e6478f21d21dc41f0b666252aac7f8d37bcff7c7691b8e0561aeac00503d8a6e72a6905c685a0315bf047642d42c  Archive-Zip-1.67.tar.gz"