blob: 6062d4952dc78f75341b52f64acffc9344f48643 (
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
|
# $Id: PKGBUILD 142209 2011-11-06 08:56:53Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=expat
pkgver=2.0.1
pkgrel=7
pkgdesc="An XML parser library"
arch=('i686' 'x86_64')
url="http://expat.sourceforge.net/"
license=('custom')
depends=('glibc')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/expat/${pkgname}-${pkgver}.tar.gz
CVE-2009-3560.patch
CVE-2009-3720.patch)
md5sums=('ee8b492592568805593f81f8cdf2a04c'
'50603cac0f03aabc7087415251f592be'
'f3eeb796f28945899216b815e5901996')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i $srcdir/CVE-2009-3560.patch
patch -Np1 -i $srcdir/CVE-2009-3720.patch
./configure --prefix=/usr --mandir=/usr/share/man
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}
|