core/expat/PKGBUILD

35 lines
1.1 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=expat
pkgver=2.0.1
pkgrel=7
pkgdesc="An XML Parser library written in C"
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 || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" || return 1
}