void-packages/srcpkgs/libskk/template

40 lines
1.0 KiB
Bash

# Template file for 'libskk'
pkgname=libskk
version=1.0.5
revision=1
build_style=gnu-configure
hostmakedepends="gettext-devel gnome-common gobject-introspection intltool
libgee08-devel pkg-config vala libtool"
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"
if [ "$CROSS_BUILD" ]; then
configure_args="--host=${XBPS_CROSS_TRIPLET}"
else
build_options_default="gir"
fi
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
}
}