Package Details: shader-slang-git 2024.13+18.g509409ef11-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.087095
First Submitted: 2022-04-28 18:27 (UTC)
Last Updated: 2024-10-08 04:28 (UTC)

Latest Comments

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
}