PKGBUILDs/community/xvkbd/PKGBUILD
2009-10-09 21:15:33 -05:00

43 lines
1.5 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Benjamin Andresen <benny@klapmuetz.org>
# Contributor: Mikko Seppдlд <t-r-a-y@mbnet.fi>
pkgname=xvkbd
pkgver=3.0
pkgrel=3
pkgdesc="virtual (graphical) keyboard program for X Window System"
arch=('i686' 'x86_64')
url="http://homepage3.nifty.com/tsato/xvkbd/"
license=('GPL')
depends=('libxmu' 'xaw3d' 'glibc' 'libxt' 'libxtst' 'libxp')
makedepends=('imake')
source=(http://homepage3.nifty.com/tsato/xvkbd/xvkbd-$pkgver.tar.gz \
XVkbd-russian)
md5sums=('72fd96feeb2a589b2b68e9fa387afb0b'
'08b917bed411e306effe6a5122b42e20')
build() {
cd "$startdir/src/$pkgname-$pkgver"
sed -i 's|norwegian,portuguese,slovene,spanish,swedish,swissgerman,turkish,uk,latin1|norwegian,portuguese,slovene,spanish,swedish,swissgerman,turkish,uk,latin1,russian|g' XVkbd-common.ad
patch xvkbd.c <<EOF
diff xvkbd-2.8/xvkbd.c xvkbd-2.8.my/xvkbd.c
45a46
> #include <X11/extensions/XKB.h>
1988a1990
> XkbLockGroup(dpy, XkbUseCoreKbd, (shift_state & altgr_mask) ? 1 : 0);
EOF
xmkmf
make || return 1
make DESTDIR=$startdir/pkg install || return 1
# fix
rm -f $startdir/pkg/usr/lib/X11/app-defaults && \
mkdir -p $startdir/pkg/usr/lib/X11 && \
mv $startdir/pkg/etc/X11/app-defaults $startdir/pkg/usr/lib/X11/ && \
rm -rf $startdir/pkg/etc/ && \
install -D -m 0644 $startdir/src/XVkbd-russian $startdir/pkg/usr/lib/X11/app-defaults/XVkbd-russian
}
# vim:set ts=2 sw=2 et: