void-packages/srcpkgs/gtk-vnc/template
2020-08-18 06:45:33 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'gtk-vnc'
pkgname=gtk-vnc
version=1.0.0
revision=1
build_helper="gir"
build_style=meson
configure_args="$(vopt_bool gir with-gir) $(vopt_bool gir with-vala)"
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=a81a1f1a79ad4618027628ffac27d3391524c063d9411c7a36a5ec3380e6c080
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
}
}