summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/perl_modules/libxml-perl/PKGBUILD35
1 files changed, 20 insertions, 15 deletions
diff --git a/abs/core/perl_modules/libxml-perl/PKGBUILD b/abs/core/perl_modules/libxml-perl/PKGBUILD
index 474d3eb..055b08c 100644
--- a/abs/core/perl_modules/libxml-perl/PKGBUILD
+++ b/abs/core/perl_modules/libxml-perl/PKGBUILD
@@ -1,29 +1,34 @@
-# $Id: PKGBUILD 55561 2011-09-14 10:11:00Z andrea $
-# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
-# Contributor: François Charette <firmicus ατ gmx δοτ net>
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Limao Luo <luolimao+AUR@gmail.com>
+# Contributor: Chris Brannon <cmbrannon79@gmail.com>
+# Contributor: François Charette <firmicus@gmx.net>
pkgname=libxml-perl
pkgver=0.08
-pkgrel=3
+pkgrel=6
pkgdesc="Perl library for working with XML"
arch=('any')
-url="http://search.cpan.org/~KMACLEOD/libxml-perl"
+url="http://search.cpan.org/~KMACLEOD/$pkgname"
license=('GPL' 'PerlArtistic')
-depends=('perlxml>=2.19')
+depends=('perl-xml-parser')
options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-$pkgver.tar.gz)
-md5sums=('0ed5fbdda53d1301ddaed88db10503bb')
+source=("http://www.cpan.org/authors/id/K/KM/KMACLEOD/$pkgname-$pkgver.tar.gz")
+sha512sums=('66c1874a04b746334d4324ab37ee057c6da7fa7191dffae2900e0832dab3b2ededc5cbdc5e838c0d57c22161c9cf196ab40b62f61338d4c994bda9fa7b1a7702')
build() {
- cd "${srcdir}"/$pkgname-$pkgver
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ cd $pkgname-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1
make
}
-package() {
- cd "${srcdir}"/$pkgname-$pkgver
- make DESTDIR="${pkgdir}" install
+check() {
+ cd $pkgname-$pkgver
+ make test
+}
- find "${pkgdir}" -name '.packlist' -delete
- find "${pkgdir}" -name '*.pod' -delete
+package() {
+ make -C $pkgname-$pkgver/ DESTDIR="$pkgdir" install
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
}