APKBUILD 1.17 KB
Newer Older
Leonardo Arena's avatar
Leonardo Arena committed
1 2
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
3 4
pkgname=perl-io-compress
_realname=IO-Compress
5
pkgver=2.074
6
pkgrel=0
7
pkgdesc="Perl compression library"
8
url="http://search.cpan.org/dist/IO-Compress/"
9
arch="noarch"
10
license="GPL PerlArtistic"
11
depends="perl perl-compress-raw-bzip2 perl-compress-raw-zlib"
12 13
makedepends="perl-dev"
install=
14
subpackages=""
15 16 17 18 19 20 21 22 23 24 25 26
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
27 28 29 30 31 32
	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

33 34
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
35 36

	# man pages are already provided by perl-doc
37
	rm -rf "$pkgdir"/usr/share/man || return 1
38 39
}

40
sha512sums="52b0afb7365ec77527dbd3ec6190b49b5c5b256ac39a3e8e64398b29ebfbf72d4dfb05a1aebd525ff8697bd2aec52f69baaeddb94e9a576f54d36fc247100408  IO-Compress-2.074.tar.gz"