diff options
Diffstat (limited to 'community/perl-io-gzip/APKBUILD')
-rw-r--r-- | community/perl-io-gzip/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-io-gzip/APKBUILD b/community/perl-io-gzip/APKBUILD new file mode 100644 index 0000000000..005ec2fbc4 --- /dev/null +++ b/community/perl-io-gzip/APKBUILD @@ -0,0 +1,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" |