void-packages/srcpkgs/xxkb/template

31 lines
876 B
Bash
Raw Normal View History

# Template file for 'xxkb'
pkgname=xxkb
version=1.11.1
revision=1
build_style=gnu-makefile
make_install_target="install install.man"
hostmakedepends="imake"
makedepends="libX11-devel libXt-devel libXext-devel libXpm-devel"
short_desc="Keyboard layout switcher and indicator"
maintainer="Andrey Raugas <kainonergon@gmail.com>"
license="PerlArtistic"
homepage="https://sourceforge.net/projects/xxkb/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.gz"
checksum=ceaa33bed81d8ae5bf77e89787d0736f7564c3de047c35a57bcbf6f4d1888142
pre_build() {
CC=cc xmkmf
}
do_build() {
# It builds poorly when we force our LDFLAGS and CFLAGS
# So we force them on our terms.
make CC=$CC CDEBUGFLAGS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"
}
post_install() {
vinstall ${FILESDIR}/XXkb 0644 /usr/share/X11/app-defaults
vlicense LICENSE
rm -r ${DESTDIR}/usr/lib
}