void-packages/srcpkgs/gedit/template
2018-10-21 18:50:40 -03:00

40 lines
1.3 KiB
Bash

# Template file for 'gedit'
pkgname=gedit
version=3.30.2
revision=1
build_style=gnu-configure
pycompile_module="gi/overrides"
pycompile_dirs="usr/lib/gedit/plugins"
configure_args="--disable-schemas-compile --enable-python --enable-gvfs-metadata
$(vopt_enable gir introspection)"
hostmakedepends="gnome-doc-utils intltool itstool pkg-config
$(vopt_if gir 'gobject-introspection')"
makedepends="gsettings-desktop-schemas-devel gspell-devel gtksourceview-devel
libpeas-devel $(vopt_if gir 'python-gobject-devel')"
depends="desktop-file-utils gsettings-desktop-schemas
iso-codes"
short_desc="A text editor for GNOME"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
homepage="https://wiki.gnome.org/Apps/Gedit"
license="GPL-2.0-or-later"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=eaf3b17856a0fb7c6f363c2ebbf4f26c5be6eb6552a49e58c44aee0fcb789163
nocross="requires libpeas which requires girepository which is not cross"
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
gedit-devel_package() {
depends="gtksourceview-devel libpeas-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gedit/gir-1.0
fi
}
}