diff options
Diffstat (limited to 'testing/tinyxml2/APKBUILD')
-rw-r--r-- | testing/tinyxml2/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/tinyxml2/APKBUILD b/testing/tinyxml2/APKBUILD new file mode 100644 index 0000000000..c5204007ee --- /dev/null +++ b/testing/tinyxml2/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: André Klitzing <aklitzing@gmail.com> +# Maintainer: André Klitzing <aklitzing@gmail.com> +pkgname=tinyxml2 +pkgver=5.0.1 +pkgrel=0 +pkgdesc="A simple, small, efficient, C++ XML parser" +url="http://www.grinninglizard.com/tinyxml2/" +arch="all" +license="zlib" +makedepends="cmake" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/leethomason/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/"$pkgname-$pkgver + +build() { + cd "$builddir" + mkdir -p build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release + make +} + +check() { + cd "$builddir"/build + make test +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="a51ec5843774df0482620c549fb6c61d30a6db5025be26ff6d25b3c53533a27a57f00b026bd9fbca78e9e30084b3f5f6fbff9dba315d078419da084b57f518ba tinyxml2-5.0.1.tar.gz" |