summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4889927ecb33dacbaed62c3241bdd5782a92420b (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
# Maintainer: Lone_Wolf <lonewolf att xs4all dot nl>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xdriinfo-git
_gitname=xdriinfo
pkgver=xdriinfo.1.0.5.r4.g6273d9d
pkgrel=3
pkgdesc="Query configuration information of DRI drivers with glvnd support"
arch=('i686' 'x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libx11' 'libgl')
makedepends=('xorg-util-macros' 'glproto')
provides=('xorg-xdriinfo')
conflicts=('xorg-xdriinfo')
groups=('xorg-apps' 'xorg')
source=('git://anongit.freedesktop.org/git/xorg/app/xdriinfo')

sha512sums=('SKIP')

pkgver() {
  cd "$_gitname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_gitname"
  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd "$_gitname"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}