void-packages/srcpkgs/PackageKit/template

48 lines
1.5 KiB
Bash

# Template file for 'PackageKit'
pkgname=PackageKit
version=1.1.12
revision=1
wrksrc="PackageKit-PACKAGEKIT_${version//./_}"
build_style=gnu-configure
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
$(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="maxice8 <thinkabit.ukim@gmail.com>"
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"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
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
}
}