summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1264c91a61170f205ca8d39c2432b6b7b5667c8 (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
# Maintainer: Luís Ferreira <contact@lsferreira.net>

pkgname=vulkan-headers-git
pkgver=r232.c51545d3
pkgrel=1
pkgdesc="Vulkan header files"
groups=('vulkan-devel')
arch=('any')
url="https://github.com/KhronosGroup/Vulkan-Headers"
provides=('vulkan-headers' 'vulkan-hpp')
license=('Apache')
conflicts=('vulkan-headers')
source=("git+https://github.com/KhronosGroup/Vulkan-Headers.git")
sha512sums=('SKIP')
makedepends=(cmake git)
pkgver() {
  cd "$srcdir/Vulkan-Headers"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/Vulkan-Headers"

  rm -rf build ; mkdir build ; cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    ..
  make
}

package() {
  cd "$srcdir/Vulkan-Headers/build"

  make DESTDIR="${pkgdir}" install
}