updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xkeyboard-config-rub / PKGBUILD
blobbb2018872d250c82b3eb00f379a731030c0a9841
1 # $Id: PKGBUILD 147012 2012-01-20 18:44:12Z andyrtr $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 # Russian bepo: Vincent Bernardoff <vbmithr@gmail.com>
5 pkgname=xkeyboard-config-rub
6 pkgver=2.5
7 pkgrel=1
8 pkgdesc="X keyboard configuration files with russian bepo layout patch"
9 arch=(any)
10 license=('custom')
11 url="http://www.freedesktop.org/wiki/Software/XKeyboardConfig"
12 depends=('xorg-xkbcomp')
13 makedepends=('intltool')
14 provides=('xkeyboard-config' 'xkbdata')
15 replaces=('xkeyboard-config' 'xkbdata')
16 conflicts=('xkeyboard-config' 'xkbdata')
17 source=(http://xorg.freedesktop.org/archive/individual/data/${pkgname/-rub/}-${pkgver}.tar.bz2 russian_bepo.patch)
18 sha256sums=('0f50579d34e56d817a1bf7ff26582984dd7262209e9e74862237cfae5a7a2961' 'f3eaa89367d6b97baf547387b5863f60152a907d9a168b5a379c0b57df0c9ebb')
20 build() {
21   cd "${srcdir}/${pkgname/-rub/}-${pkgver}"
22   patch -p1 < ${srcdir}/russian_bepo.patch
23   ./configure --prefix=/usr \
24       --with-xkb-base=/usr/share/X11/xkb \
25       --with-xkb-rules-symlink=xorg \
26       --enable-compat-rules=yes
27   make
28  }
30  package() {
31    cd "${srcdir}/${pkgname/-rub/}-${pkgver}"
32   make DESTDIR="${pkgdir}" install
33   rm -f "${pkgdir}/usr/share/X11/xkb/compiled"
34   install -m755 -d "${pkgdir}/var/lib/xkb"
35   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
36   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"