aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-archive-zip/APKBUILD
blob: 7040f5115e3a59586bb24c218a2389a71b21dafb (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-archive-zip
_pkgname=Archive-Zip
pkgver=1.66
pkgrel=1
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="abeefcd87510c83374856c958178f94ce9c6bd5710adc4b3725d8bdcfa5a6a5441876f3bc0575eeba3eec233565276c2d314b24ce0875c0dd8a3beb98e9ac5c7  Archive-Zip-1.66.tar.gz"