From b2aad21448823a417dae72b1ba389cba0770e3df Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 18 Jul 2020 19:57:19 +0000 Subject: user/kirigami-gallery: New package --- user/kirigami-gallery/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 user/kirigami-gallery/APKBUILD (limited to 'user') diff --git a/user/kirigami-gallery/APKBUILD b/user/kirigami-gallery/APKBUILD new file mode 100644 index 000000000..348814521 --- /dev/null +++ b/user/kirigami-gallery/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kirigami-gallery +pkgver=20.04.3 +pkgrel=0 +pkgdesc="View examples of Kirigami components" +url="https://kde.org/applications/development/org.kde.kirigami2.gallery" +arch="all" +license="GPL-2.0-only" +depends="qt5-qtquickcontrols2 qt5-qtgraphicaleffects kirigami2" +makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev cmake extra-cmake-modules + kirigami2-dev qt5-qttools-dev" +subpackages="$pkgname-lang" +source="https://download.kde.org/stable/release-service/$pkgver/src/kirigami-gallery-$pkgver.tar.xz" + +build() { + 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} \ + -Bbuild . + make -C build +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test +} + +package() { + make DESTDIR="$pkgdir" -C build install +} + +sha512sums="860e4a09bdbf6a201ec3107b94a0cfcb6f956b26a93f9b01b89bc1ac9b67e13a798ced51d3d836ff7638ee352900eb4ae9085d266d0c3c07de407329713b4bd2 kirigami-gallery-20.04.3.tar.xz" -- cgit v1.2.3-70-g09d2