void-packages/srcpkgs/spice-gtk/template
2018-03-02 09:10:52 +01:00

49 lines
1.6 KiB
Bash

# Template file for 'spice-gtk'
pkgname=spice-gtk
version=0.34
revision=2
build_style=gnu-configure
configure_args="--disable-static --enable-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="automake pkg-config libtool gettext-devel intltool vala-devel
glib-devel spice-protocol $(vopt_if gir gobject-introspection)"
makedepends="acl-devel lz4-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"
depends="hwids"
homepage="http://spice-space.org"
license="LGPL-2.1"
short_desc="GTK+ SPICE widget"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://spice-space.org/download/gtk/${pkgname}-${version}.tar.bz2"
checksum=e9720e01165f8451c9f3f58ad50e3afb990993b81cc2db86b3661b7ac5b976ee
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
autoreconf -if
}
post_configure() {
# Fix wrong path /usr/lib32 when looking for spice.proto
find ${wrksrc} -name Makefile -exec sed -i "{}" -e "s;lib32/spice;lib/spice;g" \;
}
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/vala
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}