From 556b0b1cd0cc4aad3ab72eaa8cc93117a04a98a7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 15 Oct 2017 05:01:30 -0500 Subject: user/kirigami2: new package --- user/kirigami2/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 user/kirigami2/APKBUILD (limited to 'user/kirigami2/APKBUILD') diff --git a/user/kirigami2/APKBUILD b/user/kirigami2/APKBUILD new file mode 100644 index 000000000..924cb3717 --- /dev/null +++ b/user/kirigami2/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kirigami2 +pkgver=5.39.0 +pkgrel=0 +pkgdesc="Framework for rapidly designing usable interfaces" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +options="!check" # Tests require accelerated X11 desktop. +depends="qt5-qtgraphicaleffects" +depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev + qt5-qtquickcontrols2-dev plasma-framework-dev" +makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev doxygen + graphviz" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/frameworks/5.39/kirigami2-$pkgver.tar.xz" +builddir="$srcdir/kirigami2-$pkgver/build" + +prepare() { + mkdir -p "$builddir" +} + +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="ed6605072b8cd28bb9a6c70ab0f9d65e559795bf6cdd3118d63d36588a6c397a7b8656e80201ba320ae9b85a38f31550897762dcbee8347cd9e657efc6e8af11 kirigami2-5.39.0.tar.xz" -- cgit v1.2.3-70-g09d2