42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'gtkspell3'
|
|
pkgname=gtkspell3
|
|
version=3.0.10
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-silent-rules"
|
|
hostmakedepends="automake intltool libtool pkg-config
|
|
$(vopt_if vala vala)"
|
|
makedepends="enchant2-devel gtk+3-devel $(vopt_if vala vala)"
|
|
short_desc="Highlighting and replacement of misspelled words"
|
|
maintainer="beefcurtains <beefcurtains@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://gtkspell.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname::-1}/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=b040f63836b347eb344f5542443dc254621805072f7141d49c067ecb5a375732
|
|
|
|
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
|
|
|
|
gtkspell3-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} enchant2-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
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
|
|
}
|
|
}
|