# Maintainer: spider-mario # Maintainer: Antonio Rojas # Contributor: j.r # Contributor: Jonathan Chasteen # Contributor: Mohammadreza Abdollahzadeh # Contributor: aimileus pkgbase=qgnomeplatform-git _pkgname=QGnomePlatform pkgname=(qgnomeplatform-qt5-git qgnomeplatform-qt6-git qgnomeplatform-common-git) pkgver=0.7.0.r99.gd86d6ba pkgrel=1 pkgdesc='QPlatformTheme for a better Qt application inclusion in GNOME' arch=(x86_64) url='https://github.com/FedoraQt/QGnomePlatform' license=(LGPL2.1) makedepends=(cmake git gtk3 qt5-wayland qt6-wayland adwaita-qt5 adwaita-qt6) options=('!emptydirs') source=(git+https://github.com/FedoraQt/$_pkgname.git) sha256sums=('SKIP') pkgver() { cd $_pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cmake -B build-qt5 -S $_pkgname \ -DCMAKE_INSTALL_PREFIX=/usr \ -DUSE_QT6=OFF cmake --build build-qt5 cmake -B build-qt6 -S $_pkgname \ -DCMAKE_INSTALL_PREFIX=/usr \ -DUSE_QT6=ON cmake --build build-qt6 } package_qgnomeplatform-common-git() { pkgdesc='QPlatformTheme for a better Qt application inclusion in GNOME (common files)' arch=(any) depends=() provides=(qgnomeplatform-common) conflicts=(qgnomeplatform-common) DESTDIR="destdir-common" cmake --install build-qt6 for f in destdir-common/usr/share/color-schemes/*; do install -Dm644 "$f" "$pkgdir/usr/share/color-schemes/$f" done } package_qgnomeplatform-qt5-git() { pkgdesc='QPlatformTheme for a better Qt5 application inclusion in GNOME' depends=(gtk3 qt5-wayland qt5-quickcontrols2 adwaita-qt5 qgnomeplatform-common-git) replaces=(qgnomeplatform qgnomeplatform-git) provides=(qgnomeplatform-qt5) conflicts=(qgnomeplatform-qt5) DESTDIR="$pkgdir" cmake --install build-qt5 rm "$pkgdir"/usr/share/color-schemes/* } package_qgnomeplatform-qt6-git() { pkgdesc='QPlatformTheme for a better Qt6 application inclusion in GNOME' depends=(gtk3 qt6-wayland adwaita-qt6 qgnomeplatform-common-git) provides=(qgnomeplatform-qt6) conflicts=(qgnomeplatform-qt6) DESTDIR="$pkgdir" cmake --install build-qt6 rm "$pkgdir"/usr/share/color-schemes/* }