aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-compress/APKBUILD
blob: 281ce530167f2423e20a6c252c95bfb87d7426ec (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-io-compress
_realname=IO-Compress
pkgver=2.074
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=""
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

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

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