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)"
11 url="http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git"
13 makedepends=('xorg-util-macros' 'git')
15 provides=('libpciaccess=0.12.901')
16 conflicts=('libpciaccess')
18 _gitroot="git://anongit.freedesktop.org/xorg/lib/libpciaccess.git"
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."
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 cp -r $_gitname $_gitname-build
36 ./autogen.sh --prefix=/usr --sysconfdir=/etc
42 make DESTDIR="$pkgdir" install
43 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname/-*}/COPYING"