diff options
author | Arthur LAURENT | 2024-04-01 17:54:23 +0200 |
---|---|---|
committer | Arthur LAURENT | 2024-04-01 17:54:23 +0200 |
commit | a180f6e727a6910a83c945cc8b9b3d815195b2a6 (patch) | |
tree | cd135523538d52b185ad6e7d8033bfac9fa21b08 | |
parent | 26f88d17829e8a84f9206f28afd878b519c8beca (diff) | |
download | aur-a180f6e727a6910a83c945cc8b9b3d815195b2a6.tar.gz |
improve package
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 17 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = nzsl pkgdesc = A shader language inspired by Rust and C++ which compiles to GLSL or SPIRV (without any additional dependency) pkgver = 20240227 - pkgrel = 3 + pkgrel = 4 url = https://github.com/NazaraEngine/ShaderLang arch = i686 arch = x86_64 @@ -10,6 +10,8 @@ pkgbase = nzsl license = MIT makedepends = xmake makedepends = fast_float + makedepends = git + provides = nzsl source = git+https://github.com/NazaraEngine/ShaderLang.git#commit=00426331127bca10b79498e3b1edf5a4d1d87986 sha256sums = SKIP @@ -2,37 +2,42 @@ pkgname=nzsl pkgver=20240227 -pkgrel=3 +pkgrel=4 pkgdesc="A shader language inspired by Rust and C++ which compiles to GLSL or SPIRV (without any additional dependency)" arch=('i686' 'x86_64' 'armv7h' 'aarch64') url="https://github.com/NazaraEngine/ShaderLang" license=('MIT') options=() +provides=('nzsl') -makedepends=('xmake' 'fast_float') +makedepends=('xmake' 'fast_float' 'git') source=("git+https://github.com/NazaraEngine/ShaderLang.git#commit=00426331127bca10b79498e3b1edf5a4d1d87986") sha256sums=('SKIP') +pkgver() { + cd "${srcdir}/ShaderLang" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + prepare() { - cd "ShaderLang" - xmake f -k shared -m release --tests=y --examples=n --yes + cd "${srcdir}/ShaderLang" + xmake f -k shared -m releasedbg --tests=y --examples=n --yes } build() { - cd "ShaderLang" + cd "${srcdir}/ShaderLang" xmake b } check() { - cd "ShaderLang" + cd "${srcdir}/ShaderLang" xmake run UnitTests } package() { - cd "ShaderLang" - xmake f --root -m release --tests=n --examples=n --yes - xmake install --root -o "${pkgdir}/usr" + cd "${srcdir}/ShaderLang" + xmake install --root -o "${pkgdir}/usr" nzslc install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |