summaryrefslogtreecommitdiff
path: root/user/kdecoration/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-05 19:23:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-05 19:23:57 -0500
commit334ead24588c8dbc8b6ec52bb5ceb8d7529fca00 (patch)
treeb533fed0d61626078af666ec3d2bbebf188d23c2 /user/kdecoration/APKBUILD
parent73574018d06be3563335eeea720b50ec87994430 (diff)
downloadpackages-334ead24588c8dbc8b6ec52bb5ceb8d7529fca00.tar.gz
packages-334ead24588c8dbc8b6ec52bb5ceb8d7529fca00.tar.bz2
packages-334ead24588c8dbc8b6ec52bb5ceb8d7529fca00.tar.xz
packages-334ead24588c8dbc8b6ec52bb5ceb8d7529fca00.zip
user/kdecoration: new package
Diffstat (limited to 'user/kdecoration/APKBUILD')
-rw-r--r--user/kdecoration/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kdecoration/APKBUILD b/user/kdecoration/APKBUILD
new file mode 100644
index 000000000..9285f2562
--- /dev/null
+++ b/user/kdecoration/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kdecoration
+pkgver=5.8.7
+pkgrel=0
+pkgdesc="Window decoration plugin library"
+url="https://www.kde.org/"
+arch="all"
+license="LGPL-2.1"
+options="!check" # Requires running X11 display
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev cmake extra-cmake-modules"
+install=""
+subpackages="$pkgname-dev"
+source="http://download.kde.org/stable/plasma/$pkgver/kdecoration-$pkgver.tar.xz"
+builddir="$srcdir/kdecoration-$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="ef1f7f3eb09872f0ceb0552300493f2701fdb6fb262dec00cad2f06a2ac034a7e278815a90220e94ab366956b0e62157b7c1e0f4fd743a6d5fa7c77931fd54e8 kdecoration-5.8.7.tar.xz"