diff options
Diffstat (limited to 'user/tinyxml2')
-rw-r--r-- | user/tinyxml2/APKBUILD | 38 |
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" |