void-packages/srcpkgs/PackageKit/template
2020-01-28 10:33:07 +01:00

46 lines
1.5 KiB
Bash

# Template file for 'PackageKit'
pkgname=PackageKit
version=1.1.12
revision=2
wrksrc="PackageKit-PACKAGEKIT_${version//./_}"
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static --disable-gtk-doc --disable-local
--disable-dummy --disable-gstreamer-plugin --disable-gtk-module
--disable-command-not-found --disable-systemd $(vopt_enable vala)
$(vopt_enable gir introspection)"
hostmakedepends="automake glib-devel pkg-config libtool gtk-doc
gobject-introspection intltool gettext-devel autoconf-archive which
$(vopt_if vala 'vala-devel')"
makedepends="libglib-devel sqlite-devel polkit-devel bash-completion
$(vopt_if gir gobject-introspection) $(vopt_if vala 'vala-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=b0b86f44dafc22f3dd1737d2fd369993e28be8d5b519fc4b16c382b3262ee37d
conf_files="/etc/PackageKit/PackageKit.conf /etc/PackageKit/PackageKit.conf"
build_options="gir vala"
build_options_default="gir vala"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
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
}
}