diff options
Diffstat (limited to 'tinyxml/Pkgfile')
-rw-r--r-- | tinyxml/Pkgfile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tinyxml/Pkgfile b/tinyxml/Pkgfile new file mode 100644 index 000000000..f47920af4 --- /dev/null +++ b/tinyxml/Pkgfile @@ -0,0 +1,28 @@ +# Description: simple, small, C++ XML parser +# URL: http://www.grinninglizard.com/tinyxml/ +# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl +# Depends on: + +name=tinyxml +version=2.6.1 +release=1 +source=( + http://dl.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.zip + entity.patch +) + +shopt -s extglob +build() { + soname=lib$name.$version.so + cd $name + # http://tinyurl.com/2v66ja4 + patch -p0 -i ../entity.patch + mkdir -p $PKG/usr/include + install -m 0644 *.h $_ + g++ $CXXFLAGS -fPIC -shared -o $soname !(xmltest).cpp + install -D -m 0644 $soname $PKG/usr/lib/$soname + cd $PKG/usr/lib + ln -s $soname ${soname%%.*}.so + ln -s $soname ${soname%.*.*.so}.so + ln -s $soname ${soname%.*.so}.so +} |