blob: daf4313f6cd95ddee8c0262e9e720965c6ec63bc (
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.1.0
pkgrel=0
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-$pkgver.tar.gz
"
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 \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir/" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="dd7dab7a5fea97d2a6a43f511449b7cd expat-2.1.0.tar.gz"
|