updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libxcb-git / PKGBUILD
blob49819f16e15adcf566ea41b1044823ffd717d181
1 # Maintainer: NeoRaider <neoraider@universe-factory.net>
3 _pkgname=libxcb
4 pkgname=${_pkgname}-git
5 pkgver=20120105
6 pkgrel=3
7 pkgdesc="X11 client-side library (git version)"
8 arch=(i686 x86_64)
9 url="http://xcb.freedesktop.org/"
10 depends=('xcb-proto-git' 'libxdmcp' 'libxau')
11 makedepends=('pkgconfig' 'libxslt' 'python' 'autoconf')
12 conflicts=('libx11<1.1.99.2' 'libxcb')
13 provides=('libxcb=1.7')
14 options=('!libtool')
15 license=('custom')
16 source=(libxcb-1.1-no-pthread-stubs.patch)
17 sha1sums=('3455e84642283bc91c8313af319002a20bbcbdf4')
19 _gitroot="git://git.freedesktop.org/git/xcb/libxcb"
20 _gitname="libxcb"
22 build() {
23   cd "${srcdir}"
25   msg "Connecting to git.freedesktop.org GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "${srcdir}/build"
38   cp -r "${srcdir}/${_gitname}" "${srcdir}/build"
39   cd "${srcdir}/build"
41   patch -Np1 -i "${srcdir}/libxcb-1.1-no-pthread-stubs.patch"
43   ./autogen.sh --prefix=/usr --enable-xinput
44   make
47 package() {
48   cd "${srcdir}/build"
49   make DESTDIR="${pkgdir}" install
51   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
52   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"