summaryrefslogtreecommitdiff
path: root/user/tinyxml2/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-18 01:35:39 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-18 01:35:39 +0000
commit04d39e5f0e772cbbb816993404c0f2394663c6c8 (patch)
tree904197aaf219b57c2d3ba30d6aea5cf4aba1e462 /user/tinyxml2/APKBUILD
parentf51b87881ee2454dfb6ca73adf458c5c5fef7af6 (diff)
downloadpackages-04d39e5f0e772cbbb816993404c0f2394663c6c8.tar.gz
packages-04d39e5f0e772cbbb816993404c0f2394663c6c8.tar.bz2
packages-04d39e5f0e772cbbb816993404c0f2394663c6c8.tar.xz
packages-04d39e5f0e772cbbb816993404c0f2394663c6c8.zip
user/tinyxml2: new package
Diffstat (limited to 'user/tinyxml2/APKBUILD')
-rw-r--r--user/tinyxml2/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/user/tinyxml2/APKBUILD b/user/tinyxml2/APKBUILD
new file mode 100644
index 000000000..b210bfb7d
--- /dev/null
+++ b/user/tinyxml2/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=tinyxml2
+pkgver=7.0.1
+pkgrel=0
+pkgdesc="Small, efficient C++ XML parser"
+url=" "
+arch="all"
+license="Zlib"
+depends=""
+makedepends=""
+subpackages="$pkgname-dev"
+source="tinyxml2-$pkgver.tar.gz::https://github.com/leethomason/tinyxml2/archive/$pkgver.tar.gz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="623cd7eff542d20b434a67111ac98110101c95a18767318bf906e5e56d8cc25622269f740f50477fe907a4c52d875b614cb6167f4760d42ab18dc55b9d4bf380 tinyxml2-7.0.1.tar.gz"