summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e0b36d680acd64f3dea2289f785c73eb62f53d3 (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
# Maintainer: Det

pkgname=egl-wayland-git
_pkgname=egl-wayland
pkgver=r1.743d702
pkgrel=1
pkgdesc="A work-in-progress specification of the EGL External Platform interface for modern window systems - Git"
arch=('i686' 'x86_64')
url="https://github.com/NVIDIA/$_pkgname"
license=('MIT')
depends=('mesa' 'wayland' 'eglexternalplatform-git')
makedepends=('git')
conflicts=('nvidia-utils<378.09')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd $_pkgname

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

  msg2 "Running make..."
  make
}

package() {
  cd $_pkgname

  msg2 "Running make install..."
  make DESTDIR="$pkgdir" install
}