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

pkgname=egl-wayland-git
_pkgname=egl-wayland
pkgver=r1.743d702
pkgrel=1
pkgdesc="A work-in-progress implementation of a EGL External Platform library to add client-side Wayland support - Git"
arch=('x86_64')
url="https://github.com/NVIDIA/$_pkgname"
license=('MIT')
depends=('mesa' 'wayland' 'eglexternalplatform')
makedepends=('git')
conflicts=("$_pkgname" 'nvidia-utils<378.09')
provides=("$_pkgname")
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
}