summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd741301335e0100809d28c40a35df3d41f83252 (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
# 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-Docs"
provides=('vulkan-headers')
license=('custom')
conflicts=('vulkan-headers')
source=("git+https://github.com/KhronosGroup/Vulkan-Docs.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/Vulkan-Docs"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -dm755 "$pkgdir/usr/include/vulkan/"
  install -dm755 "$pkgdir/usr/share/vulkan"
  install -dm755 "$pkgdir/usr/share/licenses/$pkgname"

  install -m644 ${srcdir}/Vulkan-Docs/include/vulkan/*.h "$pkgdir/usr/include/vulkan"
  install -m644 "$srcdir/Vulkan-Docs/xml/vk.xml" "$pkgdir/usr/share/vulkan"
  install -m644 "$srcdir/Vulkan-Docs/copyright-ccby.txt" "$pkgdir/usr/share/licenses/$pkgname/copyright-ccby.txt"
  install -m644 "$srcdir/Vulkan-Docs/copyright-spec.txt" "$pkgdir/usr/share/licenses/$pkgname/copyright-spec.txt"
}