# $Id: PKGBUILD 22425 2008-12-26 19:55:49Z jgc $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=xkeyboard-config pkgver=1.4 pkgrel=2 pkgdesc="X keyboard configuration files" arch=(i686 x86_64) license=('custom') url="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" depends=('xorg-xkb-utils') makedepends=('perlxml' 'pkgconfig') provides=('xkbdata') replaces=('xkbdata') conflicts=('xkbdata') source=(http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${pkgver}.tar.bz2 fix-abnt2.patch) md5sums=('a9fe7efbc67a6966c4d4501f0cf88073' '5af20ec00a42a051cf0d7bcb572471df') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i "${srcdir}/fix-abnt2.patch" || return 1 ./configure --prefix=/usr \ --with-xkb-base=/usr/share/X11/xkb \ --with-xkb-rules-symlink=xorg \ --enable-compat-rules=yes || return 1 make || return 1 make DESTDIR="${pkgdir}" install || return 1 rm -f "${pkgdir}/usr/share/X11/xkb/compiled" || return 1 install -m755 -d "${pkgdir}/var/lib/xkb" install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 }