void-packages/srcpkgs/gtk-vnc/template

38 lines
1.1 KiB
Bash

# Template file for 'gtk-vnc'
pkgname=gtk-vnc
version=1.2.0
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dwith-vala=$(vopt_if gir enabled disabled)"
hostmakedepends="gettext gettext-devel glib-devel intltool libgcrypt-devel
pkg-config $(vopt_if gir vala)"
makedepends="gnutls-devel gtk+3-devel libsasl-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=7aaf80040d47134a963742fb6c94e970fcb6bf52dc975d7ae542b2ef5f34b94a
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 gtk-vnc>=${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
}
}