pkgname=kidletime pkgver=5.37.0 pkgrel=1 pkgdesc='Monitoring user activity' arch="all" url='https://community.kde.org/Frameworks' license="LGPL" depends="qt5-x11extras" makedepends="extra-cmake-modules mesa-dev doxygen qt5-qttools-dev qt5-x11extras-dev" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" subpackages="$pkgname-dev $pkgname-doc" prepare() { mkdir -p $srcdir/build } build() { cd $srcdir/build cmake "$srcdir"/${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=ON make } package() { cd $srcdir/build make DESTDIR="${pkgdir}" install } sha512sums="444cfc25d162c4390ec0aa49b035bda1e5628972a634eb08c0cc9c48d513676669729470fc91cdf25ed98b9b6dd76b71159659bfecb4cbd61e029ad42398be27 kidletime-5.37.0.tar.xz"