summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/perl_modules/perl-text-patch/PKGBUILD33
1 files changed, 19 insertions, 14 deletions
diff --git a/abs/core/perl_modules/perl-text-patch/PKGBUILD b/abs/core/perl_modules/perl-text-patch/PKGBUILD
index d7751e4..9dbf253 100644
--- a/abs/core/perl_modules/perl-text-patch/PKGBUILD
+++ b/abs/core/perl_modules/perl-text-patch/PKGBUILD
@@ -1,26 +1,31 @@
-# $Id: PKGBUILD 125357 2011-05-26 06:26:28Z angvp $
-# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
-# Contributor: Caleb Cushing <xenoterracide@gmail.com>
+# $Id$
+# Maintainer:
+
pkgname=perl-text-patch
-_realname=Text-Patch
pkgver=1.8
-pkgrel=1
+pkgrel=4
pkgdesc="Patches text with given patch"
-arch=(any)
-license=(PerlArtistic GPL)
-depends=(perl)
-url='http://search.cpan.org/dist/$_realname'
+arch=('any')
+url="http://search.cpan.org/dist/Text-Patch"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+checkdepends=('perl-text-diff')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/C/CA/CADE/$_realname-$pkgver.tar.gz")
-md5sums=('ad5e453d5ba3b48afd8163114d0fee1c')
+source=("http://search.cpan.org/CPAN/authors/id/C/CA/CADE/Text-Patch-$pkgver.tar.gz")
+sha1sums=('025d6249ae2b57b2f92cc7e1761b94a5fdbe4635')
build() {
- cd "$srcdir/$_realname-$pkgver"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ cd Text-Patch-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor
make
}
+check() {
+ cd Text-Patch-$pkgver
+ make test
+}
+
package() {
- cd "$srcdir/$_realname-$pkgver"
+ cd Text-Patch-$pkgver
make DESTDIR="$pkgdir" install
}