aboutsummaryrefslogtreecommitdiffstats
path: root/community/tinyxml2
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-10-23 22:19:10 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-10-23 22:20:40 +0200
commit6452e803ff6a531c170bdd657f45e06a63ff224f (patch)
tree3ef5639d43d33ed9a1cee37cdae9cc5ef1315556 /community/tinyxml2
parentbb446cf225993a9318b961d5bb843dc5ead20a1f (diff)
downloadaports-6452e803ff6a531c170bdd657f45e06a63ff224f.tar.bz2
aports-6452e803ff6a531c170bdd657f45e06a63ff224f.tar.xz
community/tinyxml2: move from testing
Diffstat (limited to 'community/tinyxml2')
-rw-r--r--community/tinyxml2/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/tinyxml2/APKBUILD b/community/tinyxml2/APKBUILD
new file mode 100644
index 0000000000..c5204007ee
--- /dev/null
+++ b/community/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"