diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-07-18 19:57:19 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-07-18 19:57:19 +0000 |
commit | b2aad21448823a417dae72b1ba389cba0770e3df (patch) | |
tree | 763082ed408d7c6e81c52a82fcde06b2ccb0ad44 | |
parent | 42dc03c2793dea3d166e2cff4c22990815d2dce8 (diff) | |
download | packages-b2aad21448823a417dae72b1ba389cba0770e3df.tar.gz packages-b2aad21448823a417dae72b1ba389cba0770e3df.tar.bz2 packages-b2aad21448823a417dae72b1ba389cba0770e3df.tar.xz packages-b2aad21448823a417dae72b1ba389cba0770e3df.zip |
user/kirigami-gallery: New package
-rw-r--r-- | user/kirigami-gallery/APKBUILD | 40 |
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" |