1 # Maintainer: Jan Rüegg <rggjan@gmail.com>
3 pkgname=xkeyboard-config-neo-svn
6 pkgdesc="xkeyboard-config with the ergonomic German keyboard layout Neo"
9 url="http://www.neo-layout.org"
10 depends=('xorg-xkb-utils' 'numlockx')
11 makedepends=('intltool' 'subversion' 'pkgconfig')
12 provides=("xkeyboard-config=${_xkeyboardver}" "xkbdata")
13 replaces=('neo-layout-svn' "xkbdata")
14 conflicts=("xkeyboard-config" "xkbdata" "neo-layout-svn")
15 source=(http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${_xkeyboardver}.tar.bz2)
16 md5sums=('37ae41628cd2ce35d202d30b1820c8ba')
17 install=$pkgname.install
19 _svntrunk=https://svn.neo-layout.org
23 # build xkeyboard-config
24 cd "${srcdir}/xkeyboard-config-${_xkeyboardver}"
25 ./configure --prefix=/usr \
26 --with-xkb-base=/usr/share/X11/xkb \
27 --with-xkb-rules-symlink=xorg \
28 --enable-compat-rules=yes || return 1
30 make DESTDIR="${pkgdir}" install || return 1
31 rm -f "${pkgdir}/usr/share/X11/xkb/compiled" || return 1
32 install -m755 -d "${pkgdir}/var/lib/xkb"
33 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
34 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
39 svn co -r $pkgver $_svntrunk/linux/bin $_svnmod/linux/bin
40 svn co -r $pkgver $_svntrunk/linux/X $_svnmod/linux/X
41 svn co -r $pkgver $_svntrunk/linux/console $_svnmod/linux/console
42 svn co -r $pkgver $_svntrunk/linux/etc $_svnmod/linux/etc
43 svn co -r $pkgver $_svntrunk/A-REFERENZ-A $_svnmod/A-REFERENZ-A
45 msg "SVN checkout done or server timeout"
46 msg "Starting installation..."
51 install -D -m644 X/compat/* ${startdir}/pkg/usr/share/X11/xkb/compat
52 install -D -m644 X/rules/* ${startdir}/pkg/usr/share/X11/xkb/rules
53 install -D -m644 X/symbols/* ${startdir}/pkg/usr/share/X11/xkb/symbols
54 install -D -m644 X/types/* ${startdir}/pkg/usr/share/X11/xkb/types
56 # console layout (not part of xkeyboard-config, but belongs solely to Neo)
59 install -d ${startdir}/pkg/usr/share/kbd/keymaps/i386/neo
60 install -D -m644 neo.map.gz ${startdir}/pkg/usr/share/kbd/keymaps/i386/neo/
64 install -d ${startdir}/pkg/usr/bin
65 install -D -m755 ./* ${startdir}/pkg/usr/bin/
69 sed -i 's/\$HOME/\/usr\/share\/doc/' neo.conf
70 install -d ${startdir}/pkg/etc/
71 install -D -m644 neo.conf ${startdir}/pkg/etc/
75 install -d ${startdir}/pkg/usr/share/doc/neo/
76 install -D -m644 neo20.txt ${startdir}/pkg/usr/share/doc/neo/