diff options
-rw-r--r-- | user/kxmlrpcclient/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/user/kxmlrpcclient/APKBUILD b/user/kxmlrpcclient/APKBUILD new file mode 100644 index 000000000..88b40e0e2 --- /dev/null +++ b/user/kxmlrpcclient/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kxmlrpcclient +pkgver=5.38.0 +pkgrel=0 +pkgdesc="Qt library for writing XML-RPC clients" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +depends="" +depends_dev="qt5-qtbase-dev ki18n-dev kio-dev" +makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev + doxygen graphviz qt5-qttools-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/frameworks/5.38/kxmlrpcclient-$pkgver.tar.xz" +builddir="$srcdir/kxmlrpcclient-$pkgver" + +build() { + cd "$builddir" + 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" \ + -DBUILD_QCH:BOOL=ON \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="c8ee2bbe1547ee153197742b1069ca1113c591bd9d9560618e7083fba8af60d1877e8c822923158dc14789ed95a903486e5d5b291862948acc796b29a4764b49 kxmlrpcclient-5.38.0.tar.xz" |