summaryrefslogtreecommitdiffstats
path: root/main/expat/APKBUILD
blob: 8ffc99780486480fc31aed247409f3f4cfed9ca6 (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
41
42
43
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=expat
pkgver=2.0.1
pkgrel=6
pkgdesc="An XML Parser library written in C"
url="http://www.libexpat.org/"
arch="all"
license='AS IS'
depends=
makedepends=
source="http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
	CVE-2009-3560.patch
	CVE-2009-3720.patch
	"
subpackages="$pkgname-dev $pkgname-doc"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	for i in "$srcdir"/*.patch; do
		[ -f "$i" ] || continue
		msg "Applying $i"
		patch -p1 -i "$i" || return 1
	done
		
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
	--mandir=/usr/share/man
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="ee8b492592568805593f81f8cdf2a04c  expat-2.0.1.tar.gz
50603cac0f03aabc7087415251f592be  CVE-2009-3560.patch
f3eeb796f28945899216b815e5901996  CVE-2009-3720.patch"