updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / libpciaccess-git / PKGBUILD
blob4f3e98db9f89a780c9eda186edeadf5aefbaddeb
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
7 pkgver=20111122
8 pkgrel=1
9 pkgdesc="X11 PCI access library (Git version)"
10 arch=(i686 x86_64)
11 url="http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git"
12 license="bsd"
13 makedepends=('xorg-util-macros' 'git')
14 options=('!libtool')
15 provides=('libpciaccess=0.12.901')
16 conflicts=('libpciaccess')
18 _gitroot="git://anongit.freedesktop.org/xorg/lib/libpciaccess.git"
19 _gitname=${pkgname/-*}
21 build() {
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."
27   else
28     git clone $_gitroot
29   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   cp -r $_gitname $_gitname-build
34   cd $_gitname-build
36   ./autogen.sh --prefix=/usr --sysconfdir=/etc
37   make
40 package() {
41   cd $_gitname-build
42   make DESTDIR="$pkgdir" install
43   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname/-*}/COPYING"