void-packages/srcpkgs/gtk-vnc/template

39 lines
1.2 KiB
Bash

# Template file for 'gtk-vnc'
pkgname=gtk-vnc
version=1.3.1
revision=2
build_helper="gir"
build_style=meson
configure_args="$(vopt_feature gir with-vala) -Dpulseaudio=enabled"
hostmakedepends="gettext perl glib-devel pkg-config $(vopt_if gir vala)"
makedepends="gnutls-devel gtk+3-devel libsasl-devel libgcrypt-devel pulseaudio-devel
$(vopt_if gir vala)"
short_desc="VNC viewer widget for GTK"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/gtk-vnc"
distfiles="${GNOME_SITE}/gtk-vnc/${version%.*}/gtk-vnc-${version}.tar.xz"
checksum=512763ac4e0559d0158b6682ca5dd1a3bd633f082f5e4349d7158e6b5f80f1ce
build_options="gir"
build_options_default="gir"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" -Dwith-coroutine=gthread"
fi
gtk-vnc-devel_package() {
depends="glib-devel gtk+3-devel pulseaudio-devel gnutls-devel
libgcrypt-devel libsasl-devel ${sourcepkg}>=${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/vala
vmove usr/share/gir-1.0
fi
}
}