summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: febd1a8ab90295b7d45ef7b271aa1439f92e6a82 (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
# Maintainer: Christoph Haag <haagch+aur@frickel.club>
pkgname='vkmark-git'
pkgdesc='Vulkan benchmark'
pkgver=r133.30d2cd3
pkgrel=2
url='https://github.com/vkmark/vkmark'
arch=('i686' 'x86_64')
provides=('vkmark')
conflicts=('vkmark')
license=('LGPL2.1')
depends=('vulkan-icd-loader' 'assimp')
makedepends=('git' 'vulkan-headers' 'meson' 'ninja' 'glm' 'wayland-protocols' 'xorgproto' 'xcb-util-wm' 'wayland')
optdepends=('xcb-util-wm: for X11 support'
            'wayland: for Wayland support')
source=('git+https://github.com/vkmark/vkmark.git')
sha1sums=('SKIP')

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

build() {
  cd "${srcdir}"/vkmark

  meson --prefix=/usr build
  ninja -C build
}

package() {
  cd "${srcdir}"/vkmark
  DESTDIR="$pkgdir" ninja -C build install
}