void-packages/srcpkgs/PackageKit/template

47 lines
1.5 KiB
Bash
Raw Normal View History

2018-10-10 22:14:51 +02:00
# Template file for 'PackageKit'
pkgname=PackageKit
2018-11-28 20:30:06 +01:00
version=1.1.12
2019-04-29 12:04:53 +02:00
revision=2
2018-10-10 22:14:51 +02:00
wrksrc="PackageKit-PACKAGEKIT_${version//./_}"
build_style=gnu-configure
2019-04-29 12:04:53 +02:00
build_helper="gir"
2018-10-10 22:14:51 +02:00
configure_args="--disable-static --disable-gtk-doc --disable-local
--disable-dummy --disable-gstreamer-plugin --disable-gtk-module
2018-11-28 20:30:06 +01:00
--disable-command-not-found --disable-systemd $(vopt_enable vala)
$(vopt_enable gir introspection)"
2018-10-10 22:14:51 +02:00
hostmakedepends="automake glib-devel pkg-config libtool gtk-doc
2018-11-28 20:30:06 +01:00
gobject-introspection intltool gettext-devel autoconf-archive
$(vopt_if vala 'vala-devel')"
2018-10-10 22:14:51 +02:00
makedepends="libglib-devel sqlite-devel polkit-devel bash-completion
2018-11-28 20:30:06 +01:00
$(vopt_if gir gobject-introspection) $(vopt_if vala 'vala-devel')"
2018-10-10 22:14:51 +02:00
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"
2018-11-28 20:30:06 +01:00
checksum=b0b86f44dafc22f3dd1737d2fd369993e28be8d5b519fc4b16c382b3262ee37d
2018-10-10 22:14:51 +02:00
conf_files="/etc/PackageKit/PackageKit.conf /etc/PackageKit/PackageKit.conf"
2018-11-28 20:30:06 +01:00
build_options="gir vala"
2019-04-29 12:04:53 +02:00
build_options_default="gir vala"
2018-10-10 22:14:51 +02:00
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
2018-11-28 20:30:06 +01:00
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
2018-10-10 22:14:51 +02:00
}
}