updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libpciaccess-git / PKGBUILD
blob9dca8db4a5da3da08eee87c7d15b5a93eada48e9
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
7 pkgname=$_pkgname-git
8 pkgver=20120124
9 pkgrel=1
10 pkgdesc="X11 PCI access library - Git version"
11 arch=('i686' 'x86_64')
12 url="http://cgit.freedesktop.org/xorg/lib/$_pkgname/"
13 license=('custom')
14 makedepends=('xorg-util-macros' 'git')
15 options=('!libtool')
16 provides=("$_pkgname=99")
17 conflicts=("$_pkgname")
19 _gitroot=git://anongit.freedesktop.org/xorg/lib/$_pkgname
20 _gitname=$_pkgname
22 build() {
23   msg "Connecting to anongit.freedesktop.org GIT server...."
25   if [ -d $_gitname ] ; then
26      cd $_gitname && git pull origin && cd ..
27      msg "The local files are updated."
28   else
29      git clone --depth 1 $_gitroot
30   fi
32   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
35   cd $_gitname
36   ./autogen.sh --prefix=/usr
37   make
40 package(){
41   cd $_gitname
42   make DESTDIR="$pkgdir" install
43   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"