# 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://github.com/KDE/kde-gtk-config" license=('LGPL') groups=('kdeplasma5') depends=('karchive' 'kauth' 'kcmutils' 'kconfigwidgets' 'knewstuff' 'kde-cli-tools' 'qt5-svg' 'xsettingsd' 'gsettings-desktop-schemas') makedepends=('extra-cmake-modules' 'gtk2' 'gtk3' 'sassc') source=("https://download.kde.org/stable/plasma/${pkgver}/${pkgname}-${pkgver}.tar.xz") #source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KDE/${pkgname}/archive/${_branch}.tar.gz") #'org.gnome.desktop.interface.gschema.xml') md5sums=(`grep ${pkgname}-${_plasmaver}.tar.xz ../kf5.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() { mkdir -p build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_LIBEXECDIR=lib \ -DKDE_INSTALL_SYSCONFDIR=/etc \ -DKDE_INSTALL_QMLDIR=/usr/lib/qt5/qml \ -DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DBUILD_TESTING=OFF make } package() { cd build make DESTDIR=${pkgdir} install #install -Dm644 ${srcdir}/org.gnome.desktop.interface.gschema.xml ${pkgdir}/usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml }