stable-diffusion.cpp-rocm-bin
LOW
maintainer monsoon235
0 votes
scanned 2026-10-06 08:02:16.298752
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: monsoon <29970829+monsoon235@users.noreply.github.com>
2
pkgname=stable-diffusion.cpp-rocm-bin
3
pkgver=master_929_3f8527a
4
pkgrel=1
5
pkgdesc='stable-diffusion.cpp upstream Linux x86_64 prebuilt binaries with the ROCm backend'
6
arch=('x86_64')
7
url='https://github.com/leejet/stable-diffusion.cpp'
8
license=('MIT')
9
depends=('glibc' 'gcc-libs' 'hip-runtime-amd' 'hipblas' 'rocblas')
10
provides=('stable-diffusion.cpp')
11
conflicts=('stable-diffusion.cpp' 'stable-diffusion.cpp-git' 'stable-diffusion.cpp-vulkan-bin')
12
options=('!strip' '!debug')
13
_upstream_tag=master-929-3f8527a
14
_commit=3f8527a
15
_rocm_version=7.14.0
16
source=("${pkgname}-${pkgver}.zip::https://github.com/leejet/stable-diffusion.cpp/releases/download/${_upstream_tag}/sd-master-${_commit}-bin-Linux-Ubuntu-24.04-x86_64-rocm-${_rocm_version}.zip")
17
sha256sums=('b4877986cc25cc04decc073874eed5ea411fc0bb19f5338f0ea3511a8e8b1c58')
18
19
package() {
20
local upstream="$srcdir/build/bin" executable license_file
21
test -x "$upstream/sd-cli"
22
test -x "$upstream/sd-server"
23
test -f "$upstream/libggml-hip.so"
24
test -f "$upstream/stable-diffusion.cpp.txt"
25
test -f "$upstream/ggml.txt"
26
27
install -d "$pkgdir/usr/lib/$pkgname" "$pkgdir/usr/bin"
28
cp -a "$upstream/." "$pkgdir/usr/lib/$pkgname/"
29
for license_file in "$pkgdir/usr/lib/$pkgname"/*.txt; do
30
[[ -f "$license_file" ]] || continue
31
install -Dm644 "$license_file" "$pkgdir/usr/share/licenses/$pkgname/${license_file##*/}"
32
rm "$license_file"
33
done
34
for executable in sd-cli sd-server; do
35
ln -s "../lib/$pkgname/$executable" "$pkgdir/usr/bin/$executable"
36
done
37
}
38
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-06 08:02:16 | Low | 1 |