blob: 962dc0b3766cadf31465042b2fbe733eeaad7e6f (
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
35
36
37
38
39
40
|
# $Id: PKGBUILD 99293 2010-11-13 20:13:13Z andrea $
# Maintainer:
# Contributor: firmicus <francois@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: herb <hrose@archlinux.org>
pkgname=perl-xml-parser
_realname=XML-Parser
pkgver=2.40
pkgrel=3
pkgdesc="Expat-based XML parser module for perl"
arch=('i686' 'x86_64')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
replaces=('perlxml')
depends=('perl' 'expat')
provides=("perlxml=${pkgver}")
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/${_realname}-${pkgver}.tar.gz")
md5sums=('c66e9adba003d0667cc40115ccd837a5')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
make install DESTDIR="${pkgdir}"
# remove perllocal.pod and .packlist.
find "${pkgdir}" -name perllocal.pod -delete
find "${pkgdir}" -name .packlist -delete
}
|