24 lines
607 B
Plaintext
24 lines
607 B
Plaintext
# Description: Patches text with given patch
|
|
# URL: https://metacpan.org/release/Text-Patch
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
# 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)
|
|
|
|
build() {
|
|
cd Text-Patch-$version
|
|
|
|
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 '{}' +
|
|
}
|