aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-io-gzip/APKBUILD
blob: 5160e75beb2ea832b3eeb2920c17d8156b07f997 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-io-gzip
pkgver=0.20
pkgrel=4
pkgdesc="Perl extension to provide a PerlIO layer to gzip/gunzip"
url="https://metacpan.org/pod/IO::Compress::Gzip"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NW/NWCLARK/PerlIO-gzip-$pkgver.tar.gz"

builddir="$srcdir/PerlIO-gzip-$pkgver"

build() {
	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="b24e8fa99cbcbaf07feabfc09cefc55a10c1dce59b495b59343ff5217536f7108c92f462751e70242e6567be32e69a0cc88a2e66325e926174a64042d4b87966  PerlIO-gzip-0.20.tar.gz"