1 # Maintainer: Det <nimetonmaili at gmail a dot com>
2 # Contributor: Matt Parnell /ilikenwf <parwok@gmail.com>
3 # Contributor: Jonathan <eyeswide@gmail.com>
4 # Based on [extra]'s libpciaccess
6 pkgname=libpciaccess-git
9 pkgdesc="X11 PCI access library - Git version"
10 arch=('i686' 'x86_64')
11 url="http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git"
13 makedepends=('xorg-util-macros' 'git')
15 provides=('libpciaccess=99')
16 conflicts=('libpciaccess')
18 _gitroot=git://git.freedesktop.org/git/xorg/proto/${pkgname/-*}
19 _gitname=${pkgname/-*}
22 msg "Connecting to git.freedesktop.org GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin && cd ..
26 msg "The local files are updated."
28 git clone --depth 1 $_gitroot
31 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 ./autogen.sh --prefix=/usr
41 make DESTDIR="$pkgdir" install
42 install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname/-*}/COPYING"