contrib/p5-text-patch/Pkgfile

24 lines
607 B
Plaintext
Raw Normal View History

2019-10-22 14:59:16 +02:00
# Description: Patches text with given patch
# URL: https://metacpan.org/release/Text-Patch
# Maintainer: John McQuah, jmcquah at disroot dot org
2019-10-22 14:59:16 +02:00
# Depends on: p5-text-diff
name=p5-text-patch
_author=CADE
version=1.8
release=1
source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/Text-Patch-$version.tar.gz)
2019-10-22 14:59:16 +02:00
build() {
cd Text-Patch-$version
2019-10-22 14:59:16 +02:00
perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR="$PKG" install
find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
find $PKG -depth -empty -delete
find $PKG \( -type f -a ! -perm -u+w \) -exec chmod u+w '{}' +
2019-10-22 14:59:16 +02:00
}