From 04d39e5f0e772cbbb816993404c0f2394663c6c8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 18 Apr 2019 01:35:39 +0000 Subject: user/tinyxml2: new package --- user/tinyxml2/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 user/tinyxml2/APKBUILD 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2