1 # Contributor: Andrei Thorp <garoth at the fanciful gmail dot com>
5 # Yes, I know it's the git version and it should have -git. However, this is
6 # the _only_ version of xcb-util with ewmh available -- and it will probably
7 # be merged into xcb-util proper one day.
8 pkgdesc="xcb-util branch with the ewmh specification extension (git)"
10 url="git://people.freedesktop.org/~arnau"
12 depends=('libxcb>=1.4')
13 makedepends=('gperf' 'git')
17 md5sums=('2672c2e72dedb40f773e989dd622f298')
19 _gitroot="--branch xcb-ewmh git://people.freedesktop.org/~arnau/xcb-util.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
41 ./configure --prefix=/usr --disable-static
43 make DESTDIR="$pkgdir/" install
44 install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
45 # Is this the right way to make sure libtool files don't get here? Tell me if it's not.
46 rm ${pkgdir}/usr/lib/*.la