summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-08 20:10:43 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-08 20:10:43 -0500
commitc4c8ae2f864d7e754228ca907df15febd32f4020 (patch)
tree68073968c6eff073a8e65364a101313efdb21b53
parenta26f6307f51ea39e0dbffc0632b40b44404cb8fc (diff)
downloadpackages-c4c8ae2f864d7e754228ca907df15febd32f4020.tar.gz
packages-c4c8ae2f864d7e754228ca907df15febd32f4020.tar.bz2
packages-c4c8ae2f864d7e754228ca907df15febd32f4020.tar.xz
packages-c4c8ae2f864d7e754228ca907df15febd32f4020.zip
user/libkscreen: new package
-rw-r--r--user/libkscreen/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/libkscreen/APKBUILD b/user/libkscreen/APKBUILD
new file mode 100644
index 000000000..f90541eda
--- /dev/null
+++ b/user/libkscreen/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libkscreen
+pkgver=5.8.7
+pkgrel=0
+pkgdesc="KDE Plasma screen management software"
+url="https://www.kde.org/"
+arch="all"
+license="GPL-2.0"
+options="!check" # Requires dbus-x11 and both of them running
+depends=""
+depends_dev="qt5-qtbase-dev qt5-qtx11extras-dev kwayland-dev"
+makedepends="$depends_dev cmake extra-cmake-modules"
+install=""
+subpackages="$pkgname-dev"
+source="http://download.kde.org/stable/plasma/$pkgver/libkscreen-$pkgver.tar.xz"
+builddir="$srcdir/libkscreen-$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" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="194f6b1cb5abb38f5c4fc425546652e31f8b0b0a0ae6e3d657c98095df13f383258f0e16c74b5add0935158c1affd27b21ae76cf7b951801f4250f6dc527006e libkscreen-5.8.7.tar.xz"