void-packages/srcpkgs/vte290/template
maxice8 6d0570f3f0 vte290: remove gnome-doc-utils
Closes #13818.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-01 02:04:27 +02:00

46 lines
1.3 KiB
Bash

# Template build file for 'vte290'.
pkgname=vte290
version=0.36.5
revision=2
wrksrc=vte-${version}
build_style=gnu-configure
configure_args="--with-gtk=3.0 --disable-gnome-pty-helper --disable-static
$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')"
hostmakedepends="glib-devel intltool pkg-config
$(vopt_if gir 'gobject-introspection vala-devel')"
makedepends="gtk+3-devel ncurses-devel vte"
depends="vte"
short_desc="Terminal widget with improved accessibility and I18N support"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnome.org"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
checksum=c2c2ce9640f08b07667f1037862fe991081495446b735c0afb98f45e35b64edf
# Fix musl build
CFLAGS="-D_GNU_SOURCE"
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
post_install() {
# Rename conflicting file
mv ${DESTDIR}/etc/profile.d/{vte,vte290}.sh
}
vte290-devel_package() {
depends="gtk+3-devel vte290>=${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/gir-1.0
fi
vmove usr/share/gtk-doc
}
}