diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-15 05:01:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-15 05:01:30 -0500 |
commit | 556b0b1cd0cc4aad3ab72eaa8cc93117a04a98a7 (patch) | |
tree | aedefa1da0b1ae76d4860ab4c9d23c33eb82efad /user | |
parent | 3fbea3f266258deaab42adb9d5010dc9d2a1bc04 (diff) | |
download | packages-556b0b1cd0cc4aad3ab72eaa8cc93117a04a98a7.tar.gz packages-556b0b1cd0cc4aad3ab72eaa8cc93117a04a98a7.tar.bz2 packages-556b0b1cd0cc4aad3ab72eaa8cc93117a04a98a7.tar.xz packages-556b0b1cd0cc4aad3ab72eaa8cc93117a04a98a7.zip |
user/kirigami2: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/kirigami2/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +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" |