void-packages/srcpkgs/polkit-qt5/template

30 lines
852 B
Bash

# Template file for 'polkit-qt5'
pkgname=polkit-qt5
version=0.112.0
revision=3
wrksrc="polkit-qt-1-${version}"
build_style=cmake
hostmakedepends="pkg-config git"
makedepends="polkit-devel qt5-devel"
short_desc="Qt-style PolicyKit API (Qt5)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://projects.kde.org/projects/kdesupport/polkit-qt-1"
distfiles="${KDE_SITE}/apps/KDE4.x/admin/polkit-qt-1-${version}.tar.bz2"
checksum=67fb03bf6ca3e0bdbd98d374dfb5b1651a07d17ae6c23e11a81b4b084447e7c6
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
polkit-qt5-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}