void-packages/srcpkgs/xvkbd/template

32 lines
902 B
Bash

# Template file for 'xvkbd'
pkgname=xvkbd
version=4.0
revision=1
build_style=gnu-configure
hostmakedepends="imake xorg-cf-files gccmakedep"
makedepends="libXaw-devel libXaw3d-devel libXtst-devel"
short_desc="Virtual (graphical) keyboard program for X11"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="http://t-sato.in.coocan.jp/xvkbd/"
distfiles="http://t-sato.in.coocan.jp/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=eb54e440badc40299ba9a8f27fcea740cd3501310e8955651af7ade517a3ac82
nocross=yes # xmkmf broken
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) broken="cannot retrieve distfiles (Forbidden)" ;;
esac
do_configure() {
xmkmf
sed -i 's/\$(DESTDIR) \$(SHAREDIR)/$(DESTDIR)$(SHAREDIR)/' Makefile
}
pre_build() {
export MODULE_CFLAGS="$CFLAGS"
export LOCAL_LDFLAGS="$LDFLAGS"
}
post_install() {
rm ${DESTDIR}/usr/lib/X11/app-defaults
vman xvkbd.man xvkbd.1
}