# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=kiconthemes pkgver=${_kf5ver} pkgrel=1 pkgdesc='KIconThemes' arch=('x86_64') url='https://invent.kde.org/frameworks/kiconthemes' license=('LGPL') depends=('qt5-svg' 'kconfigwidgets' 'kitemviews') makedepends=('extra-cmake-modules' 'qt5-tools') groups=('kf5') source=("http://download.kde.org/stable/frameworks/5.51/${pkgname}-${pkgver}.tar.xz" "https://invent.kde.org/frameworks/kiconthemes/-/commit/d5d04e3c3fa92fbfd95eced39c3e272b8980563d.diff") md5sums=(`grep ${pkgname}-$_kf5ver.tar.xz ../kf5.md5 | cut -d" " -f1` '42ee12dfc1e6664a6e4a901844b89aa6') prepare() { cd ${pkgname}-${pkgver} #patch -p1 -i ${srcdir}/d5d04e3c3fa92fbfd95eced39c3e272b8980563d.diff } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules \ -DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }