42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'gspell'
|
|
pkgname=gspell
|
|
version=1.8.1
|
|
revision=3
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static $(vopt_enable gir introspection)
|
|
$(vopt_enable vala)"
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if vala 'vala')"
|
|
makedepends="glib-devel enchant2-devel gtk+3-devel iso-codes
|
|
$(vopt_if vala vala)"
|
|
short_desc="Flexible API to add spell checking to a GTK+ application"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://www.gnome.org"
|
|
distfiles="${GNOME_SITE}/gspell/${version%.*}/gspell-${version}.tar.xz"
|
|
checksum=819a1d23c7603000e73f5e738bdd284342e0cd345fb0c7650999c31ec741bbe5
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir vala" ;;
|
|
esac
|
|
|
|
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"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|