summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa7a7c629628c52efa77db00ff6a0aad1f9e1e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Det <nimetonmaili g-mail>
# Contributor: Matt Parnell /ilikenwf <parwok@gmail.com>
# Contributor: Jonathan <eyeswide@gmail.com>
# Based on [extra]'s libpciaccess: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libpciaccess

_pkgname=libpciaccess
pkgname=$_pkgname-git
pkgver=0.13.2.9.r277.g9b1bf11
pkgrel=1
pkgdesc="X11 PCI access library - Git version"
arch=('x86_64')
url="http://cgit.freedesktop.org/xorg/lib/$_pkgname/"
license=('custom')
makedepends=('git' 'xorg-util-macros')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
options=('!libtool')
source=("git://anongit.freedesktop.org/xorg/lib/$_pkgname")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname

  echo $(git describe --long | cut -d "-" -f2-3 | tr - .).r$(git rev-list HEAD --count).$(git describe --long | cut -d "-" -f4)
}

build() {
  cd $_pkgname

  msg2 "Starting autogen.sh..."
  ./autogen.sh --prefix=/usr

  msg2 "Starting make..."
  make
}

package() {
  cd $_pkgname

  msg2 "Starting make install..."
  make DESTDIR="$pkgdir" install

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
}