void-packages/srcpkgs/colord-gtk/template
2021-12-17 00:25:56 +01:00

37 lines
1.2 KiB
Bash

# Template file for 'colord-gtk'
pkgname=colord-gtk
version=0.2.0
revision=2
build_style=meson
build_helper=gir
configure_args="-Dtests=false -Dvapi=$(vopt_if vala true false)
-Ddocs=$(vopt_if docs true false) -Dman=$(vopt_if man true false)"
hostmakedepends="pkg-config intltool glib-devel libxslt
$(vopt_if docs gtk-doc) $(vopt_if vala vala-devel)
$(vopt_if man docbook-xsl-ns)"
makedepends="colord-devel gtk+3-devel"
short_desc="GTK support library for colord"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/hughsie/colord-gtk"
distfiles="${FREEDESKTOP_SITE}/colord/releases/${pkgname}-${version}.tar.xz"
checksum=2a4cfae08bc69f000f40374934cd26f4ae86d286ce7de89f1622abc59644c717
build_options="vala docs man"
build_options_default="vala"
desc_option_docs="Generate documents"
desc_option_man="Generate manpage"
colord-gtk-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}