mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
upgpkg: llama.cpp-hip b4062-2
Build statically to be able to install alongside whisper.cpp Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
parent
9ab334cf8c
commit
8219bfbbce
2 changed files with 6 additions and 2 deletions
2
.SRCINFO
2
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = llama.cpp-hip
|
||||
pkgdesc = Port of Facebook's LLaMA model in C/C++ (with AMD ROCm optimizations)
|
||||
pkgver = b4062
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/ggerganov/llama.cpp
|
||||
arch = x86_64
|
||||
arch = armv7h
|
||||
|
|
|
|||
6
PKGBUILD
6
PKGBUILD
|
|
@ -3,7 +3,7 @@
|
|||
pkgname=llama.cpp-hip
|
||||
_pkgname="${pkgname%-hip}"
|
||||
pkgver=b4062
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Port of Facebook's LLaMA model in C/C++ (with AMD ROCm optimizations)"
|
||||
arch=(x86_64 armv7h aarch64)
|
||||
url='https://github.com/ggerganov/llama.cpp'
|
||||
|
|
@ -64,6 +64,8 @@ build() {
|
|||
-DGGML_FMA=OFF
|
||||
-DGGML_ALL_WARNINGS=OFF
|
||||
-DGGML_ALL_WARNINGS_3RD_PARTY=OFF
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DGGML_STATIC=ON
|
||||
-DGGML_LTO=ON
|
||||
-DGGML_RPC=ON
|
||||
-DLLAMA_CURL=ON
|
||||
|
|
@ -77,6 +79,8 @@ build() {
|
|||
|
||||
package() {
|
||||
DESTDIR="${pkgdir}" cmake --install build
|
||||
rm "${pkgdir}/usr/include/"ggml*
|
||||
rm "${pkgdir}/usr/lib/"lib*.a
|
||||
|
||||
install -Dm644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue