aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-io-gzip/APKBUILD
blob: 005ec2fbc4e3d64e0c5c83367eb357220b9f92d9 (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-io-gzip
pkgver=0.19
pkgrel=0
pkgdesc="Perl extension to provide a PerlIO layer to gzip/gunzip"
url="http://search.cpan.org/dist/PerlIO-gzip/"
arch="all"
license="GPL"
depends=""
depends_dev="perl-dev zlib-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NW/NWCLARK/PerlIO-gzip-$pkgver.tar.gz"

_builddir="$srcdir"/PerlIO-gzip-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

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

md5sums="dbcfc1450f6b593b65048b8ced061c98  PerlIO-gzip-0.19.tar.gz"
sha256sums="d2e9351d58b8a93c86811e25a898ee651fc393a157413652bf42f9aada2eb284  PerlIO-gzip-0.19.tar.gz"
sha512sums="514b4e224bb66f00c1e7e4678ede625b6fd0ce0c2687bb7bf662d8ffe942c6a711426f27399343a9c02b0313dae8aa41a7e4551f7d9e59a178cc1a6d067d8608  PerlIO-gzip-0.19.tar.gz"