void-packages/srcpkgs/gtk-vnc/template
2022-01-22 09:40:38 +01:00

38 lines
1.2 KiB
Bash

# Template file for 'gtk-vnc'
pkgname=gtk-vnc
version=1.3.0
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dwith-vala=$(vopt_if gir enabled disabled) -Dpulseaudio=enabled"
hostmakedepends="gettext gettext-devel glib-devel intltool 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}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=5faaa5823b8cbe8c0b0ba1e456c4e70c4b1ae6685c9fe81a4282d98cf00a211d
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 ${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
}
}