aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-compress/APKBUILD
blob: 596cef5daddbf4c997c9542dfd6633076f55488c (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: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-io-compress
_realname=IO-Compress
pkgver=2.069
pkgrel=2
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
}

md5sums="b26925161e3f01919f60344d1bbb49c4  IO-Compress-2.069.tar.gz"
sha256sums="e9d36d93e12874536ecbf6c1db80aae34236645798b3501b479c78e09da3f28c  IO-Compress-2.069.tar.gz"
sha512sums="ed2f98ec380af0f23f82b422513a95e0d3023dbbc2662e52bf6a5d59a32c744fa3c5096dd7dde7997db5e508ea1ed378095437ae29cad3b7aac6bd9a85a999fb  IO-Compress-2.069.tar.gz"