void-packages/srcpkgs/gedit/template
2019-12-24 12:24:31 +01:00

42 lines
1.3 KiB
Bash

# Template file for 'gedit'
pkgname=gedit
version=3.32.2
revision=2
build_helper="gir"
build_style=meson
pycompile_module="gi/overrides"
pycompile_dirs="usr/lib/gedit/plugins"
configure_args="-Dplugins=true -Dvapi=$(vopt_if vala true false)
-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="itstool pkg-config glib-devel gdk-pixbuf perl $(vopt_if vala vala)"
makedepends="gsettings-desktop-schemas-devel gspell-devel gtksourceview4-devel
libpeas-devel libsoup-devel $(vopt_if gir 'python-gobject-devel')"
depends="desktop-file-utils gsettings-desktop-schemas
iso-codes"
short_desc="Text editor for GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Apps/Gedit"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=742fef5e496f5d0dbc95dac5c5547f040dffbea55cd835e6618294eadd9959e0
shlib_provides="libgedit-3.14.so"
nocross=yes
build_options="gir vala"
build_options_default="gir vala"
gedit-devel_package() {
depends="${sourcepkg}>=${version}_${revision} gtksourceview-devel libpeas-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gedit/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}