Package Details: shader-slang-git 2026.14-1

Git Clone URL: https://aur.archlinux.org/shader-slang-git.git (read-only, click to copy)
Package Base: shader-slang-git
Description: Shading language that makes it easier to build and maintain large shader codebases in a modular and extensible fashion.
Upstream URL: https://github.com/shader-slang/slang
Licenses: MIT
Conflicts: shader-slang, shader-slang-bin
Provides: shader-slang
Submitter: 1ace
Maintainer: zcyaya
Last Packager: zcyaya
Votes: 3
Popularity: 0.000006
First Submitted: 2022-04-28 18:27 (UTC)
Last Updated: 2026-07-25 00:09 (UTC)

Dependencies (2)

Required by (7)

Sources (1)

Latest Comments

FabioLolix commented on 2026-09-25 17:46 (UTC)

Hi

  • this is a stable pkgbuild instead of a -git one and you know it
  • git submodules should be downloaded in source=() and configured in prepare() like before
  • don't use msg/msg2 but echo or printf; not even needed here
  • at least cmake is missing from makedepends
  • license is installed in the wrong path (correct one is "${pkgdir}/usr/share/licenses/${pkgname}")
  • keep pkgbuilds credits instead of deleting them

ichlubnai commented on 2025-06-11 12:45 (UTC) (edited on 2025-06-12 05:27 (UTC) by ichlubnai)

I am not sure what is supposed to be done in the prepare function in the current package but I had to change it to simply:

prepare() {
  cd slang
  git submodule update --init --recursive
}

while using pkgver=2025.10.3, to avoid the error:

fatal: git upload-pack: not our ref 8b822ee8ac2c3e52926820f46ad858532a895951
fatal: remote error: upload-pack: not our ref 8b822ee8ac2c3e52926820f46ad858532a895951
fatal: Fetched in submodule path 'external/glslang', but it did not contain 8b822ee8ac2c3e52926820f46ad858532a895951. Direct fetching of that commit failed.

In fact, to make the package work also with CMake and having all binaries properly installed I use this:

url="https://github.com/shader-slang/slang"
license=('Apache-2.0')
makedepends=(cmake git ninja)
source=("git+$url")
sha256sums=('SKIP')
...

build() {
    cd "slang"
    git submodule update --init --recursive
    cmake --preset default
    cd build
    ninja
}

package() {
    cd "slang/build"
    DESTDIR="$pkgdir" ninja install
}