From 334ead24588c8dbc8b6ec52bb5ceb8d7529fca00 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 5 Oct 2017 19:23:57 -0500 Subject: user/kdecoration: new package --- user/kdecoration/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 user/kdecoration/APKBUILD (limited to 'user/kdecoration') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2