summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7b1851ae019d18e1e381f4d28c5b93790b527a9 (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 <christoph.haag@collabora.com>
pkgname='vulkan-memory-allocator-git'
pkgdesc='Easy to integrate Vulkan memory allocation library.'
pkgver=r841.5d92e20
pkgrel=1
url='https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator'
arch=('i686' 'x86_64')
license=('LGPL2.1')
depends=()
makedepends=('git' 'vulkan-headers' 'cmake' 'ninja')
source=('git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git')
sha1sums=('SKIP')

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

prepare() {
  cd "${srcdir}"/VulkanMemoryAllocator
}

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

  cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -Bbuild
  ninja -C build
}

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