summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-xml-sax/PKGBUILD
blob: 2a59677f9523b2b8cdc23706faeeeae7fa4dafde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 67354 2010-02-06 14:10:53Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-xml-sax
pkgver=0.96
pkgrel=2
pkgdesc="Simple API for XML "
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/XML-SAX"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-xml-namespacesupport>=0.03')
options=('!emptydirs')
install=perl-xml-sax.install
source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" 'perl-xml-sax.patch') 
md5sums=('bdcd4119a62505184e211e9dfaef0ab1'
         'b8ad2da4195ac0eede28dfaed4d874c3')

build() {
  cd  $srcdir

  patch -p0 < perl-xml-sax.patch || return 1
  cd  $srcdir/XML-SAX-$pkgver

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
  make || return 1
}
package() {
  cd  $srcdir/XML-SAX-$pkgver
  make install DESTDIR=$pkgdir || return 1

  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}