# Maintainer: Christian Schendel # Contributor: Antonio Rojas # Contributor: Martchus pkgname=qt6ct-kde pkgver=0.11 pkgrel=3 pkgdesc='Qt 6 Configuration Utility, patched to work correctly with KDE applications' arch=(x86_64) url='https://www.opencode.net/trialuser/qt6ct' license=( BSD-2-Clause LGPL-3.0-or-later ) depends=( gcc-libs glibc hicolor-icon-theme kcolorscheme kconfig kiconthemes qqc2-desktop-style qt6-base qt6-declarative ) makedepends=( cmake git qt6-tools vulkan-headers ) conflicts=("qt6ct") provides=("qt6ct") source=( "${pkgname}-${pkgver}::git+${url}.git#tag=${pkgver}" "qt6ct-shenanigans.patch::https://aur.archlinux.org/cgit/aur.git/plain/qt6ct-shenanigans.patch?h=${pkgname}" "https://raw.githubusercontent.com/KDE/breeze-icons/refs/heads/master/icons/preferences/32/preferences-desktop-theme-applications.svg" "net.opencode.trialuser.qt6ct.metainfo.xml" ) b2sums=('11329909eb3d3f15d7665133e076120a5af668c700889ea1d9ad03c6e7f17358259b2f8e02f0261d52e9d9a17b93521e6e6ce9465d481f691734e78c639abebb' 'abd51a72a85178004949bc5cb644856cf258c5778a1b5d24a277f18f8f26009b795fffa29de2bd19cf9492c9a96b00dc55c335cb81cd56b173e3d4d0638b1e63' 'ae4282da4d7aa7f191c327bb1d581a6f43588d3ffbd72d8bd78c05595599da4edc9279fae4cc74738cad606c73789d962d34f2a83b62597124389dec950955ed' 'b6a799483c30e8dd7bf7f5230db7edc6c845605ccbebc9d1b200cbf9a6b87ab005de34a8218641cfe15461c898fbfe87ff0cb26ae340aafbca65dc30dcf5672b') prepare() { patch -d $pkgname-$pkgver -Np1 -i ../qt6ct-shenanigans.patch } build() { local cmake_options=( -B build -S "$pkgname-$pkgver" -D CMAKE_INSTALL_PREFIX=/usr -W no-dev ) cmake "${cmake_options[@]}" cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm0644 "$pkgname-$pkgver/COPYING" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm0644 preferences-desktop-theme-applications.svg \ "$pkgdir/usr/share/icons/hicolor/scalable/apps/preferences-desktop-theme.svg" install -Dm0644 net.opencode.trialuser.qt6ct.metainfo.xml \ "$pkgdir/usr/share/metainfo/net.opencode.trialuser.qt6ct.metainfo.xml" } # vim: set ts=4 sw=4 et: