summaryrefslogtreecommitdiff
path: root/community/tinyxml/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/tinyxml/PKGBUILD')
-rw-r--r--community/tinyxml/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/community/tinyxml/PKGBUILD b/community/tinyxml/PKGBUILD
index 4c93beb72..10c5091dc 100644
--- a/community/tinyxml/PKGBUILD
+++ b/community/tinyxml/PKGBUILD
@@ -1,10 +1,11 @@
+# $Id: PKGBUILD 74688 2012-08-02 07:33:41Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: Larry Hajali <larryhaja[at]gmail[dot]com>
# Contributor: Hubert Grzeskowiak <arch at nemesis13 dot de>
pkgname=tinyxml
pkgver=2.6.2
-pkgrel=1
+pkgrel=2
pkgdesc="A simple, small, C++ XML parser that can be easily integrated into other programs."
url='http://www.grinninglizard.com/tinyxml/'
arch=('i686' 'x86_64')
@@ -32,15 +33,17 @@ build() {
-e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
make
- g++ -fPIC ${CXXFLAGS} -shared -o lib${pkgname}.so.0.$pkgver -Wl,-soname,lib${pkgname}.so.0 *.o
+ g++ -fPIC ${CXXFLAGS} -shared -o lib${pkgname}.so.0.$pkgver \
+ -Wl,-soname,lib${pkgname}.so.0 $(ls *.o | grep -v xmltest)
}
-package()
-{
+package() {
cd "$srcdir"/$pkgname
+
install -d -m 0755 "$pkgdir"/usr/{lib,include}
install -m 0755 lib${pkgname}.so.0.$pkgver "$pkgdir"/usr/lib/
install -m 0644 $pkgname.h tinystr.h "$pkgdir"/usr/include
+
(cd "$pkgdir"/usr/lib
ln -s lib${pkgname}.so.0.$pkgver lib${pkgname}.so.0
ln -s lib${pkgname}.so.0.$pkgver lib${pkgname}.so