updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / xcb-ewmh / PKGBUILD
blob7b8271d5bb880df5461e2d9fc29843ccfd3a7370
1 # Contributor: Andrei Thorp <garoth at the fanciful gmail dot com>
2 pkgname=xcb-ewmh
3 pkgver=20100212
4 pkgrel=1
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)"
9 arch=('i686' 'x86_64')
10 url="git://people.freedesktop.org/~arnau"
11 license=('custom')
12 depends=('libxcb>=1.4')
13 makedepends=('gperf' 'git')
14 conflicts=(xcb-util)
15 provides=(xcb-util)
16 source=(LICENSE)
17 md5sums=('2672c2e72dedb40f773e989dd622f298')
19 _gitroot="--branch xcb-ewmh git://people.freedesktop.org/~arnau/xcb-util.git"
20 _gitname="xcb-util"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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"
40   ./autogen.sh
41   ./configure --prefix=/usr --disable-static
42   make || return 1
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