# Maintainer: Antonio Rojas # Contributor: FadeMind # Contributor: Zatherz pkgname=qt5ct-kde _pkgname=qt5ct pkgver=1.8 pkgrel=4 pkgdesc='Qt5 Configuration Utility, patched to work correctly with KDE applications' arch=(x86_64) url='https://qt5ct.sourceforge.io/' license=(BSD) depends=(qqc2-desktop-style5) makedepends=(cmake qt5-tools) conflicts=($_pkgname) provides=($_pkgname) source=(https://downloads.sourceforge.net/project/$_pkgname/$_pkgname-$pkgver.tar.bz2 $_pkgname-shenanigans.patch) sha256sums=('23b74054415ea4124328772ef9a6f95083a9b86569e128034a3ff75dfad808e9' '3252f5f6ade1d7d9b47c7f98f1543196b22f14a2c4fe12fcc15bbde1e6d6923c') prepare() { patch -d $_pkgname-$pkgver -p1 < $_pkgname-shenanigans.patch # The magic } build() { cmake -B build -S $_pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 $_pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }