aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-compress/APKBUILD
blob: fc339916acfff209614acb5996b0f898ac70f970 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-io-compress
_realname=IO-Compress
pkgver=2.064
pkgrel=0
pkgdesc="Perl compression library"
url="http://search.cpan.org/dist/IO-Compress/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-compress-raw-bzip2 perl-compress-raw-zlib"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/${_realname}-${pkgver}.tar.gz"

_builddir="$srcdir/$_realname-$pkgver"

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

	# conflicts with core perl
	rm "$pkgdir"/usr/bin/zipdetails || return 1
	rmdir "$pkgdir"/usr/bin 2>/dev/null || true

	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="7f59dfc0b83950288e83332bff7d48c7  IO-Compress-2.064.tar.gz"
sha256sums="cacfede77b7ca361865c0d08836fe8580860e046c61a39c2cd062c60be730ed9  IO-Compress-2.064.tar.gz"
sha512sums="1ebb9613376405d03c0a00047e92ad0d72df95ea710ce4a916199d4e2dfff915ef3e41f32d055e13ee28c372479a54912c52a122012027447cdb4ac0f3df7ea3  IO-Compress-2.064.tar.gz"