summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/kirigami-gallery/APKBUILD40
1 files changed, 40 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"