void-packages/srcpkgs/gspell/template

33 lines
1.0 KiB
Bash

# Template file for 'gspell'
pkgname=gspell
version=1.8.0
revision=1
build_style=gnu-configure
configure_args="--disable-static
$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')"
hostmakedepends="pkg-config glib-devel $(vopt_if gir 'gobject-introspection vala-devel')"
makedepends="glib-devel enchant2-devel gtk+3-devel iso-codes"
short_desc="Flexible API to add spell checking to a GTK+ application"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/gspell/${version%.*}/gspell-$version.tar.xz"
checksum=1b7fc2c5b84ede43bc52d513f0601238af92b572a42b19363da6d067fb529345
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
gspell-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}