summaryrefslogtreecommitdiff
path: root/user/qqc2-desktop-style/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-27 08:30:59 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-27 08:30:59 +0000
commit1db98fa355b9bf7f9f0700ceb4df936c1b663413 (patch)
tree1e73c0a83f338a04b9ba444cdbb705d8e9c88ce2 /user/qqc2-desktop-style/APKBUILD
parent294626193043a5d07448a18cf73c6ced3b23530b (diff)
downloadpackages-1db98fa355b9bf7f9f0700ceb4df936c1b663413.tar.gz
packages-1db98fa355b9bf7f9f0700ceb4df936c1b663413.tar.bz2
packages-1db98fa355b9bf7f9f0700ceb4df936c1b663413.tar.xz
packages-1db98fa355b9bf7f9f0700ceb4df936c1b663413.zip
user/qqc2-desktop-style: New package
Diffstat (limited to 'user/qqc2-desktop-style/APKBUILD')
-rw-r--r--user/qqc2-desktop-style/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/qqc2-desktop-style/APKBUILD b/user/qqc2-desktop-style/APKBUILD
new file mode 100644
index 000000000..a9468cd1f
--- /dev/null
+++ b/user/qqc2-desktop-style/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=qqc2-desktop-style
+pkgver=5.67.1
+pkgrel=0
+pkgdesc="QtQuickControls 2 style that uses QWidget's QStyle for painting"
+url="https://www.kde.org/"
+arch="all"
+license="GPL-2.0-only AND LGPL-3.0-only"
+depends=""
+makedepends="cmake extra-cmake-modules kconfig-dev kconfigwidgets-dev
+ kiconthemes-dev kirigami2-dev qt5-qtbase-dev qt5-qtdeclarative-dev
+ qt5-qtquickcontrols2-dev qt5-qtx11extras-dev"
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/frameworks/${pkgver%.*}/qqc2-desktop-style-$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="c2a88c81e2f4f1c586c7b512624cb631a1e8b84aea1caa69647aa939b34f44c66a1369bfbcbfa32d152f674e852399877c88abcb038eefd99a7480929b085f66 qqc2-desktop-style-5.67.1.tar.xz"