summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65846c792849e5efd0a872c94f26a5a24bf0365c (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: detiam <dehe_tian@outlook.com>
# Contributor: Sefa Eyeoglu <contact@scrumplex.net>

pkgname=vkroots
pkgver=r29.d5ef31a 
pkgrel=1
pkgdesc="A stupid simple method of making Vulkan layers, at home!"
arch=(any)
url="https://github.com/Joshua-Ashton/vkroots"
license=('Apache-2.0 OR MIT')
makedepends=("git" "meson")
provides=("$pkgname")
conflicts=("$pkgname")
_commit='d5ef31abc7cb5c69aee4bcb67b10dd543c1ff7ac'
source=("git+https://github.com/Joshua-Ashton/vkroots.git#commit=$_commit")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$pkgname"
  meson rewrite kwargs set project / version $pkgver
  arch-meson "$srcdir/build"
}

build() {
  meson compile -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}