void-packages/srcpkgs/kidletime/template

30 lines
963 B
Bash

# Template file for 'kidletime'
pkgname=kidletime
version=5.29.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="pkg-config extra-cmake-modules qt5-host-tools qt5-x11extras-devel"
makedepends="qt5-x11extras-devel libXScrnSaver-devel"
short_desc="Framework for detection and notification of device idle time"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="https://projects.kde.org/projects/frameworks/kidletime"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=3d66400e008d20d2c2710caebf8a2d6f94197c11643c5df713b95889467cd95a
post_configure() {
find -name flags.make -exec sed -i "{}" -e"s;-isystem;-I;g" \;
}
kidletime-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/qt5/mkspecs
vmove usr/lib/*.so
}
}