void-packages/srcpkgs/spice-gtk/template

49 lines
1.5 KiB
Bash

# Template file for 'spice-gtk'
pkgname=spice-gtk
version=0.35
revision=2
patch_args="-Np1"
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable vala vala) $(vopt_enable gir introspection)
--enable-smartcard=no --enable-usbredir --enable-polkit=yes
--enable-lz4=yes --with-usb-ids-path=/usr/share/hwdata/usb.ids
--disable-celt051"
hostmakedepends="pkg-config gettext-devel intltool vala-devel
glib-devel spice-protocol $(vopt_if gir gobject-introspection)"
makedepends="acl-devel liblz4-devel dbus-glib-devel vala-devel pixman-devel
opus-devel libressl-devel libsasl-devel gtk+3-devel pulseaudio-devel
libjpeg-turbo-devel polkit-devel libsoup-devel usbredir-devel spice-protocol
libglib-devel"
depends="hwids"
homepage="https://spice-space.org"
license="LGPL-2.1-or-laster"
short_desc="GTK+ SPICE widget"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
distfiles="https://spice-space.org/download/gtk/${pkgname}-${version}.tar.bz2"
checksum=b4e6073de5125e2bdecdf1fbe7c9e8c4cabe9c85518889b42f72bf63c8ab9e86
build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
else
disable_parallel_build=yes
fi
spice-gtk-devel_package() {
depends="gtk+3-devel pixman-devel libressl-devel ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}