void-packages/srcpkgs/libkeybinder3/template

43 lines
1.0 KiB
Bash

# Template file for 'libkeybinder3'
pkgname=libkeybinder3
version=0.3.2
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="gtk-doc libtool pkg-config automake
$(vopt_if gir gobject-introspection)"
makedepends="gtk+3-devel"
short_desc="Library for registering global keyboard shortcuts (GTK+3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/engla/keybinder"
distfiles="https://github.com/engla/keybinder/archive/keybinder-3.0-v${version}.tar.gz"
checksum=2eec50be6dfafa672d719e719f639df10403f270b2473e60deb2fb8455d13c51
build_options="gir"
build_options_default="gir"
pre_configure() {
touch ChangeLog
autoupdate
autoreconf -fi
}
post_install() {
vlicense COPYING
}
libkeybinder3-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - developement files"
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
}
}