llama-cpp-x64v4
LOW
maintainer antonio_breno
0 votes
scanned 2026-10-30 17:56:37.877434
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
pkgname=llama-cpp-x64v4
2
pkgver=0.6.0
3
pkgrel=1
4
pkgdesc='LLM inference in C/C++ (x86-64-v4 optimized)'
5
arch=(x86_64)
6
url=https://github.com/ggml-org/llama.cpp
7
license=(MIT)
8
depends=(
9
ggml
10
glibc
11
libgcc
12
libstdc++
13
openssl
14
)
15
conflicts=(llama-cpp)
16
provides=(llama-cpp)
17
replaces=(
18
llama-cpp-rocm
19
llama-cpp-vulkan
20
)
21
makedepends=(
22
cmake
23
git
24
ninja
25
npm
26
)
27
source=(git+https://github.com/ggml-org/llama.cpp.git#tag=v${pkgver}
28
llama-server-system.service
29
llama-server-user.service)
30
b2sums=('e62f131cbf9fbaa223ba86753a80b1212d912d839ee5cf62970f7696f769f687b2fc0319da4e8b74e60348dcfac3a0ef700f4ac62901f053b6b6a176e4af13ef'
31
'd9bada4b57b8d748030617465946841dfd966caee8e20b25af072de51e223ceacc6a3aca2dbfab7d513a03b2e70674a3b115885796f9feb8d3676bd1585df40d'
32
'0d9f7e1e645eda76683f6da67a4ddcb43e8fc7d0b892c548783239525e635f8f168d758024060e32fcf816892875311bf53342ad33038917c0139281a1f6fef6')
33
34
build() {
35
export CFLAGS="${CFLAGS} -march=x86-64-v4"
36
export CXXFLAGS="${CXXFLAGS} -march=x86-64-v4"
37
38
pushd "./llama.cpp/tools/ui"
39
npm ci --ignore-scripts
40
npm run build
41
popd
42
43
cmake -S llama.cpp -B build -G Ninja \
44
-DCMAKE_BUILD_TYPE=None \
45
-DCMAKE_INSTALL_PREFIX=/usr \
46
-DCMAKE_C_FLAGS="${CFLAGS}" \
47
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
48
-DLLAMA_BUILD_APP=OFF \
49
-DLLAMA_BUILD_EXAMPLES=ON \
50
-DLLAMA_BUILD_SERVER=ON \
51
-DLLAMA_BUILD_TESTS=OFF \
52
-DLLAMA_BUILD_TOOLS=ON \
53
-DLLAMA_BUILD_UI=ON \
54
-DLLAMA_USE_SYSTEM_GGML=ON
55
cmake --build build
56
}
57
58
package() {
59
DESTDIR="${pkgdir}" cmake --install build
60
install -Dm 644 llama.cpp/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
61
install -Dm 644 llama-server-system.service "${pkgdir}"/usr/lib/systemd/system/llama-server.service
62
install -Dm 644 llama-server-user.service "${pkgdir}"/usr/lib/systemd/user/llama-server.service
63
sed -i "s/%PKGVER%/$pkgver/g" "${pkgdir}"/usr/lib/systemd/*/llama-server.service
64
mkdir -p "${pkgdir}"/usr/share/llama/models
65
}
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-30 17:56:37 | Low | 1 |