updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / irrxml / PKGBUILD
blobafc41c703de9f4af398f91800d578941a111715e
1 # Maintainer: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
3 pkgname=irrxml
4 _pkgname=libIrrXML
5 pkgver=1.2
6 pkgrel=1
7 pkgdesc="A simple and fast open source xml parser for C++"
8 arch=('i686' 'x86_64')
9 url="http://www.ambiera.com/irrxml/"
10 license=('ZLIB')
11 depends=('gcc-libs')
12 source=("http://downloads.sourceforge.net/irrlicht/$pkgname-$pkgver.zip"
13         COPYING)
14 md5sums=('41eabd2d337917c912ee6d28613efebf'
15          '0a64b8bfec6548a32671b960f2e4dd33')
17 build() {
18   cd $srcdir/$pkgname-$pkgver
20   g++ -fPIC $CXXFLAGS -shared -Wl,-soname,$_pkgname.so.1 -o $_pkgname.so.1.2 \
21       src/irrXML.cpp || return 1
22   ln -s $_pkgname.so.1.2 $_pkgname.so.1
23   ln -s $_pkgname.so.1 $_pkgname.so
25   install -d $pkgdir/usr/lib \
26              $pkgdir/usr/include/irrXML \
27              $pkgdir/usr/share/licenses/$pkgname
29   mv lib* $pkgdir/usr/lib
30   install -Dm644 src/irrXML.h $pkgdir/usr/include/irrXML
31   install -Dm644 $srcdir/COPYING $pkgdir/usr/share/licenses/$pkgname