# Maintainer: Jesus E. pkgname=perl-text-patch pkgver=1.8 pkgrel=1 pkgdesc="Patches text with given patch" arch=('any') license=('GPL-2') url='https://search.cpan.org/dist/Text-Patch' depends=('perl') options=('!emptydirs') source=("https://search.cpan.org/CPAN/authors/id/C/CA/CADE/Text-Patch-$pkgver.tar.gz") sha512sums=('582f4972d1374d9f010d2bfeb00b857391eb78744899fd0583cee65bb321c48c1c8ea0d77c0a6bcebf73f4b7f1fa3f05a3bad9be71210b06ca4e8f31f2017d32') build() { cd Text-Patch-$pkgver perl Makefile.PL INSTALLDIRS=vendor make } package() { cd Text-Patch-$pkgver make DESTDIR="$pkgdir" install install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname" }