1 # Maintainer: Larry Hajali <larryhaja[at]gmail[dot]com>
2 # Contributor: Hubert Grzeskowiak <arch at nemesis13 dot de>
7 pkgdesc="A simple, small, C++ XML parser that can be easily integrated into other programs."
8 url='http://www.grinninglizard.com/tinyxml/'
11 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_${pkgver//./_}.tar.gz"
13 'tinyxml-2.5.3-stl.patch')
14 md5sums=('c1b864c96804a10526540c664ade67f0'
15 'b6cc2d9330707373d920f760793c6311'
16 '6db8334398e0cdad7e3c6406206ff42a')
21 # Fix entity encoding.
22 patch -p0 < "$srcdir"/entity.patch
23 # Make TINYXML_USE_STL permanently defined in tinyxml.h
24 patch -p1 < "$srcdir"/$pkgname-2.5.3-stl.patch
27 -e '/^TINYXML_USE_STL/ s|=.*|=YES|' \
28 -e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
32 g++ -fPIC ${CXXFLAGS} -shared -o lib${pkgname}.so.0.$pkgver -Wl,-soname,lib${pkgname}.so.0 *.o
38 install -d -m 0755 "$pkgdir"/usr/{lib,include}
39 install -m 0755 lib${pkgname}.so.0.$pkgver "$pkgdir"/usr/lib/
40 install -m 0644 $pkgname.h tinystr.h "$pkgdir"/usr/include
42 ln -s lib${pkgname}.so.0.$pkgver lib${pkgname}.so.0
43 ln -s lib${pkgname}.so.0.$pkgver lib${pkgname}.so