updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xkeyboard-config-neo-svn / PKGBUILD
blobeed601180252c37d99edff13c0026b42d6d5affe
1 # Maintainer: Jan Rüegg <rggjan@gmail.com>
2 _xkeyboardver=1.8
3 pkgname=xkeyboard-config-neo-svn
4 pkgver=2148
5 pkgrel=1
6 pkgdesc="xkeyboard-config with the ergonomic German keyboard layout Neo"
7 arch=(any)
8 license=('custom')
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
20 _svnmod=neo
22 build() {
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
29   make || 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
35   
36   # include new layout 
37   cd ${srcdir}
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..."
47   
48   cd $_svnmod/linux
49   
50   # X.org layout
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)
57   cd console
58   gzip -f neo.map
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/
62   # bins
63   cd ../bin
64   install -d ${startdir}/pkg/usr/bin
65   install -D -m755 ./* ${startdir}/pkg/usr/bin/
67   #configuration
68   cd ../etc
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/
73   # docs
74   cd ../../A-REFERENZ-A
75   install -d ${startdir}/pkg/usr/share/doc/neo/
76   install -D -m644 neo20.txt ${startdir}/pkg/usr/share/doc/neo/