void-packages/srcpkgs/gtkhotkey/template

32 lines
995 B
Bash
Raw Normal View History

2015-07-28 08:56:52 +00:00
# Template file for 'gtkhotkey'
pkgname=gtkhotkey
version=0.2.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="gtk+-devel"
short_desc="Platform independent hotkey handling for Gtk+ applications"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-3"
homepage="https://launchpad.net/gtkhotkey"
distfiles="http://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
checksum=fe1cf0d93026d791e856170356f56fbdff9095fe637c4a74104144c1e5111d67
pre_configure() {
sed -i '/gtkhotkeydocdir/s/\${prefix}/\${datadir}/g' Makefile.{am,in}
sed -i 's|glib/gquark\.h|glib.h|' src/gtk-hotkey-error.h
sed -i 's|glib/gtypes\.h|glib.h|' src/x11/tomboykeybinder.h
}
gtkhotkey-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/share/gtk-doc
}
}