# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=kde-gtk-config pkgver=${_plasmaver} pkgrel=1 pkgdesc="Configuration dialog to adapt GTK applications appearance to your taste under KDE" arch=('x86_64') url="https://invent.kde.org/plasma/kde-gtk-config" license=('LGPL') depends=('kcolorscheme' 'kcoreaddons6' 'kconfig6' 'kguiaddons6' 'kdbusaddons6' 'kwindowsystem6' 'kdecoration' 'qt6-svg' 'xsettingsd' 'gsettings-desktop-schemas') makedepends=('extra-cmake-modules' 'gtk3' 'sassc') groups=('kdeplasma6') source=("https://download.kde.org/stable/plasma/${pkgver}/${pkgname}-${pkgver}.tar.xz") md5sums=(`grep ${pkgname}-${_plasmaver}.tar.xz ../kf6.md5 | cut -d" " -f1`) prepare() { cd ${pkgname}-${pkgver} # not adding the Gnome desktop just for kde-gtk-config, hack to make it build, cp one gnome file on packaging #sed -i -e 's|org.gnome.desktop.interface.gschema.xml|.bashrc|' cmake/modules/FindGSettingSchemas.cmake #sed -i -e 's|PATH_SUFFIXES glib-2.0/schemas|~|' cmake/modules/FindGSettingSchemas.cmake #patch -p1 -i ${srcdir}/gsettings.patch } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build #install -Dm644 ${srcdir}/org.gnome.desktop.interface.gschema.xml ${pkgdir}/usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml }