gtk-vnc: enable gir, cleanup template

This commit is contained in:
Rasmus Thomsen 2019-03-11 18:04:03 +01:00 committed by maxice8
parent 0d1d953337
commit c9a7d049ea

View file

@ -1,23 +1,27 @@
# Template file for 'gtk-vnc' # Template file for 'gtk-vnc'
pkgname=gtk-vnc pkgname=gtk-vnc
version=0.9.0 version=0.9.0
revision=1 revision=2
configure_args="$(vopt_enable gir introspection)" build_helper="gir"
hostmakedepends="automake gettext-devel glib-devel gobject-introspection build_style=gnu-configure
intltool libgcrypt-devel libtool pkg-config" configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)"
hostmakedepends="automake gettext-devel glib-devel intltool libgcrypt-devel
libtool pkg-config gobject-introspection $(vopt_if vala vala)"
makedepends="gnutls-devel gtk+-devel gtk+3-devel libsasl-devel makedepends="gnutls-devel gtk+-devel gtk+3-devel libsasl-devel
$(vopt_if gir 'vala-devel')" $(vopt_if vala 'vala')"
short_desc="VNC viewer widget for GTK" short_desc="VNC viewer widget for GTK"
maintainer="Juan RP <xtraeme@voidlinux.org>" maintainer="Rasmus Thomsen <oss@cogitri.dev>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/gtk-vnc" homepage="https://wiki.gnome.org/Projects/gtk-vnc"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=3a9a88426809a5df2c14353cd9839b8c8163438cb708b31d8048c79d180fcab7 checksum=3a9a88426809a5df2c14353cd9839b8c8163438cb708b31d8048c79d180fcab7
build_options="gir" build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then case "$XBPS_TARGET_MACHINE" in
build_options_default="gir" i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
fi *-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
post_extract() { post_extract() {
cp -a ${wrksrc} /tmp/gtk2-build cp -a ${wrksrc} /tmp/gtk2-build
@ -41,12 +45,10 @@ pre_configure() {
do_configure() { do_configure() {
cd ${wrksrc}/gtk2-build cd ${wrksrc}/gtk2-build
./configure ${configure_args} --disable-static \ ./configure ${configure_args} --with-gtk=2.0
--with-gtk=2.0 $(vopt_enable gir introspection)
cd ${wrksrc}/gtk3-build cd ${wrksrc}/gtk3-build
./configure ${configure_args} --disable-static \ ./configure ${configure_args} --with-gtk=3.0
--with-gtk=3.0 $(vopt_enable gir introspection)
} }
do_build() { do_build() {