1 # Contributor: Paul Gideon Dann <pdgiddie+arch@gmail.com>
2 pkgname=xorg-xkb-utils-git
5 pkgdesc="X.org keyboard utilities"
7 url="http://xorg.freedesktop.org"
9 depends=('libxaw>=1.0.5' 'libxkbfile')
10 makedepends=(git pkgconfig)
11 provides=('xorg-xkb-utils')
12 conflicts=('xorg-xkb-utils')
16 _gitroot="git://anongit.freedesktop.org/xorg"
17 _macrorepo="util/macros"
18 _repos="app/xkbutils app/xkbcomp app/xkbevd app/setxkbmap"
24 if [ -d macros ]; then
28 git reset --hard origin/HEAD
30 git clone $_gitroot/$_macrorepo macros
33 msg "Configuring macros"
35 ./autogen.sh || return 1
37 for repo in $_repos; do
39 local projname=`echo $repo | awk -F/ '{print $NF }'`
40 msg "Fetching $projname"
41 if [ -d $projname ]; then
45 git reset --hard origin/HEAD
47 git clone $_gitroot/$repo
50 msg "Configuring $projname"
52 ACLOCAL="aclocal -I $srcdir/macros" ./autogen.sh --prefix=/usr || return 1
54 msg "Building $projname"
57 msg "Staging $projname"
58 make DESTDIR="$pkgdir" install || return 1