void-packages/srcpkgs/libskk/template
2019-02-08 02:28:41 -02:00

41 lines
1.1 KiB
Bash

# Template file for 'libskk'
pkgname=libskk
version=1.0.5
revision=2
build_style=gnu-configure
build_helper="gir"
hostmakedepends="gettext-devel gnome-common intltool
libgee08-devel pkg-config vala libtool gobject-introspection"
makedepends="json-glib-devel libgee08-devel libxkbcommon-devel"
short_desc="Japanese SKK input method library"
maintainer="Satoshi Amemiya <amemiya@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/ueno/${pkgname}"
distfiles="https://github.com/ueno/${pkgname}/archive/${version}.tar.gz"
checksum=a298e9726b784dd9a6ce8dcb76ff8fbe633037756795d75cfd77d3aeab4f50ed
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir " ;;
esac
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
libskk-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/vala
}
}