summaryrefslogtreecommitdiff
path: root/user/extra-cmake-modules/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-27 04:18:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-27 04:18:49 -0500
commite21bac0f55030a2268c2d1937695a4e63aacaa8f (patch)
treed69dd320658b1995bcf1627ea5cc3beab63cfd83 /user/extra-cmake-modules/APKBUILD
parent1fa4c88ee21866eeb0feae8f6b0bf609a04711cc (diff)
downloadpackages-e21bac0f55030a2268c2d1937695a4e63aacaa8f.tar.gz
packages-e21bac0f55030a2268c2d1937695a4e63aacaa8f.tar.bz2
packages-e21bac0f55030a2268c2d1937695a4e63aacaa8f.tar.xz
packages-e21bac0f55030a2268c2d1937695a4e63aacaa8f.zip
user/extra-cmake-modules: new package
Diffstat (limited to 'user/extra-cmake-modules/APKBUILD')
-rw-r--r--user/extra-cmake-modules/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/user/extra-cmake-modules/APKBUILD b/user/extra-cmake-modules/APKBUILD
new file mode 100644
index 000000000..408375dc7
--- /dev/null
+++ b/user/extra-cmake-modules/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=extra-cmake-modules
+pkgver=5.38.0
+pkgrel=0
+pkgdesc="CMake modules needed for KDE development"
+url="https://www.kde.org/"
+arch="all"
+license="3-Clause-BSD"
+options="!dbg"
+depends=""
+makedepends="cmake qt5-qtbase-dev qt5-qttools-dev qt5-qtdeclarative-dev qt5-qtquickcontrols"
+subpackages=""
+source="http://download.kde.org/stable/frameworks/5.38/extra-cmake-modules-$pkgver.tar.xz
+ posix.patch"
+builddir="$srcdir/extra-cmake-modules-$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_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE \
+ ctest -E '(relative_or_absolute_|KDEFetchTranslations|ECMToolchainAndroidTest)'
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c1fd65593732e57fb0822fd5bc2b06f9e35713a78f35269f387f6d9e4c87520b46f3cde039a42993139b478da5aebf1764d0111746af75bb0e5a33822684e501 extra-cmake-modules-5.38.0.tar.xz
+0af703a9d4696080bc52032d1d341e86fd142bef91f3c1afa9cf180e1cf2ff3bba2ea47fd36b8f52135f056a202c58a08e7c7525f671d6993839865ce6aef0f6 posix.patch"