qt6ct-kde/PKGBUILD

74 lines
2.6 KiB
Bash

# Maintainer: Christian Schendel <doppelhelix@gmail.com>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Martchus <martchus@gmx.net>
pkgname=qt6ct-kde
pkgver=0.11_5
pkgrel=1
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%_5}"
"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"
)
sha256sums=('76bfc26838b8ec7dd049da54bd812d8c526986024845a30d1e546e43555e52bf'
'55930246c54a94be02875dc21bc57e9ecfb7ef1ba40120112b0aa898928dfdc5'
'31d7eeb5ff2c20db878f140fa26cd8d53dd522585c3a05d5e23beb92604762f0'
'2df8bd052f61e33d35d80711fcae6d78d774ed000627f64ced78d109f6cbd66c')
b2sums=('11329909eb3d3f15d7665133e076120a5af668c700889ea1d9ad03c6e7f17358259b2f8e02f0261d52e9d9a17b93521e6e6ce9465d481f691734e78c639abebb'
'429205534124bbcfb631fc86e2706f97d1e85497bc303af32414abdf6e8e0949a95997a7f75dcde60e869a34e430bd853ad14342f2e0aa1197ac3987be476bd7'
'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: