summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e96a59bc0396381e2b40ff2264fcfb19d30567c (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
36
37
38
39
# Maintainer: Vincent Davis <vdavis2495@gmail.com>
# Contributor: Vincent Davis <vdavis2495@gmail.com>
pkgname='lucurious-git'
pkgver=0.0.2
pkgrel=1
license=('MIT')
pkgdesc='[Library] for building advanced DRM Vulkan Renderers'
url='https://github.com/EasyIP2023/lucurious'
arch=('x86_64')
provides=("lucurious=${pkgver%%.r*}")
conflicts=('lucurious')

# Added mesa for libgbm.so implementation
depends=('shaderc' 'vulkan-driver' 'vulkan-icd-loader' 'cglm' 'libdrm' 'libinput' 'mesa')
makedepends=('meson' 'ninja' 'git' 'vulkan-headers')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')

pkgver () {
  cd "${pkgname}"
  (
    set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build () {
  cd "${pkgname}"
  rm -rf build
  meson build
  ninja -C build
}

package () {
  cd "${pkgname}"
  DESTDIR="${pkgdir}" ninja -C build install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}