contrib/p5-compress-bzip2/Pkgfile

24 lines
649 B
Plaintext
Raw Normal View History

# Description: Perl interface to Bzip2 compression library
2019-10-23 12:56:26 +02:00
# URL: https://metacpan.org/release/Compress-Bzip2
# Maintainer: John McQuah, jmcquah at disroot dot org
2019-10-23 12:56:26 +02:00
name=p5-compress-bzip2
_author=RURBAN
2020-07-21 15:07:14 +02:00
version=2.28
2019-10-23 12:56:26 +02:00
release=1
source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/Compress-Bzip2-$version.tar.gz)
2019-10-23 12:56:26 +02:00
build() {
cd Compress-Bzip2-$version
2019-10-23 12:56:26 +02:00
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR="$PKG" install
find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
find $PKG -depth -empty -delete
# Fix perms
find $PKG -type f -a ! -perm -u+w -exec chmod u+w '{}' +
2019-10-23 12:56:26 +02:00
}