# Merged with official ABS kwindowsystem PKGBUILD by João, 2021/02/01 (all respective contributors apply herein) # Maintainer: João Figueiredo # Contributor: Andrea Scarpino pkgname=kwindowsystem-git pkgver=5.79.0_r558.g47c858e pkgrel=1 pkgdesc='Access to the windowing system' arch=($CARCH) url='https://community.kde.org/Frameworks' license=(LGPL) depends=(qt5-x11extras) makedepends=(git extra-cmake-modules-git qt5-tools qt5-doc doxygen) conflicts=(${pkgname%-git}) provides=(${pkgname%-git}) groups=(kf5-git) source=("git+https://github.com/KDE/${pkgname%-git}.git") sha256sums=('SKIP') pkgver() { cd ${pkgname%-git} _ver="$(grep -m1 "set(KF5\?_VERSION" CMakeLists.txt | cut -d '"' -f2 | tr - .)" echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" } build() { cmake -B build -S ${pkgname%-git} \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }