summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38695540826b98337e1689dc36883ac46167855b (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
45
46
47
48
# Maintainer : Daniel Bermond < gmail-com: danielbermond >
# Contributor: Det <nimetonmaili g-mail>
# Contributor: Matt Parnell /ilikenwf <parwok@gmail.com>
# Contributor: Jonathan <eyeswide@gmail.com>

pkgname=libpciaccess-git
_srcname=libpciaccess
pkgver=0.14.r1.g44f3dd0
pkgrel=1
pkgdesc='X11 PCI access library (git version)'
arch=('i686' 'x86_64')
url='https://cgit.freedesktop.org/xorg/lib/libpciaccess/'
license=('custom')
depends=('glibc')
makedepends=('git' 'xorg-util-macros')
provides=('libpciaccess')
conflicts=('libpciaccess')
source=('git+https://anongit.freedesktop.org/git/xorg/lib/libpciaccess.git')
sha256sums=('SKIP')

prepare() {
    cd "$_srcname"
    
    autoreconf -fiv
}

pkgver() {
    cd "$_srcname"
    
    # git, tags available
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^libpciaccess\.//;s/^v//'
}

build() {
    cd "$_srcname"
    
    ./configure --prefix='/usr' --sysconfdir='/etc'
    
    make
}

package() {
    cd "$_srcname"
    
    make DESTDIR="$pkgdir" install
    
    install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}