void-packages/srcpkgs/vte290/template
2019-04-29 13:47:56 +02:00

44 lines
1.2 KiB
Bash

# Template file for 'vte290'
pkgname=vte290
version=0.36.5
revision=3
wrksrc=vte-${version}
build_style=gnu-configure
build_helper="gir"
configure_args="--with-gtk=3.0 --disable-gnome-pty-helper --disable-static
$(vopt_enable gir introspection) $(vopt_enable gir 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.org>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
checksum=c2c2ce9640f08b07667f1037862fe991081495446b735c0afb98f45e35b64edf
# Fix musl build
CFLAGS="-D_GNU_SOURCE"
# Package build options
build_options="gir"
build_options_default="gir"
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
}
}