void-packages/srcpkgs/PackageKit/template

40 lines
1.3 KiB
Bash

# Template file for 'PackageKit'
pkgname=PackageKit
version=1.2.4
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dgstreamer_plugin=false -Dgtk_module=false
-Dsystemd=false -Dgobject_introspection=$(vopt_if gir true false)
-Doffline_update=false -Dbash_command_not_found=false"
hostmakedepends="glib-devel gettext-devel polkit-devel docbook-xsl
$(vopt_if vala 'vala-devel') libxslt-devel pkg-config which"
makedepends="bash-completion gettext-devel glib-devel polkit-devel
sqlite-devel $(vopt_if vala 'vala-devel') libxslt-devel"
short_desc="D-BUS abstraction layer to package management API"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/hughsie/PackageKit"
distfiles="https://github.com/hughsie/PackageKit/archive/PACKAGEKIT_${version//./_}.tar.gz"
checksum=4a7b0a41ffa56ad8af67156c46ecb9d4eb439b31a4cb581d959bd5480444954b
conf_files="/etc/PackageKit/PackageKit.conf /etc/PackageKit/PackageKit.conf"
build_options="gir vala"
build_options_default="gir vala"
PackageKit-devel_package() {
depends="PackageKit-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}