# $Id: PKGBUILD 269957 2016-06-14 19:49:12Z andyrtr $ # Maintainer: Andreas Radke # Maintainer: Jan de Groot pkgname=xkeyboard-config pkgver=2.18 pkgrel=2 pkgdesc="X keyboard configuration files" arch=(any) license=('custom') url="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" makedepends=('intltool' 'xorg-xkbcomp' 'libxslt') provides=('xkbdata') replaces=('xkbdata') conflicts=('xkbdata') source=(http://xorg.freedesktop.org/archive/individual/data/${pkgname}/${pkgname}-${pkgver}.tar.bz2 compose_ralt_enru.patch) sha256sums=('c41d917d6c8a59feb7ccbda51c40a6ada824fdd1e9684b52dd48c9530617ddd0' 'd2dc76f700c260b237b88a55a1ece7938b72b1e54cfa0a877e37747186af9ae7') prepare() { cd ${pkgname}-${pkgver} patch -p1 <../compose_ralt_enru.patch } build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr \ --with-xkb-base=/usr/share/X11/xkb \ --with-xkb-rules-symlink=xorg \ --enable-compat-rules=yes make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install rm -f "${pkgdir}/usr/share/X11/xkb/compiled" install -m755 -d "${pkgdir}/var/lib/xkb" install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" }