From 37eb4bb89f42562779f05e2b02958aa9c0f53e0d Mon Sep 17 00:00:00 2001 From: Orion <128988082+Orion-zhen@users.noreply.github.com> Date: Wed, 30 Jul 2025 15:44:22 +0800 Subject: [PATCH] ik-llama.cpp --- .SRCINFO | 31 +++++++++++++++++++++++++ PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..c1b917f4c7bdc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = ik-llama.cpp + pkgdesc = llama.cpp fork with additional SOTA quants and improved performance (OpebBLAS Backend) + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/ikawrakow/ik_llama.cpp + arch = x86_64 + arch = armv7h + arch = aarch64 + license = MIT + makedepends = cmake + makedepends = git + depends = openblas + depends = openblas64 + depends = blas64-openblas + depends = curl + depends = gcc-libs + depends = glibc + depends = python + provides = llama.cpp + conflicts = libggml + conflicts = ggml + conflicts = llama.cpp + conflicts = llama.cpp-vulkan + conflicts = llama.cpp-cuda + conflicts = llama.cpp-hip + options = lto + options = !debug + source = git+https://github.com/ikawrakow/ik_llama.cpp + sha256sums = SKIP + +pkgname = ik-llama.cpp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..a1311a444ee72 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,70 @@ +# Maintainer: Orion-zhen + +pkgname=ik-llama.cpp +_pkgname=ik_llama.cpp +pkgver=1.0 +pkgrel=1 +pkgdesc="llama.cpp fork with additional SOTA quants and improved performance (OpebBLAS Backend)" +arch=(x86_64 armv7h aarch64) +url="https://github.com/ikawrakow/ik_llama.cpp" +license=("MIT") +depends=( + openblas + openblas64 + blas64-openblas + curl + gcc-libs + glibc + python +) +makedepends=( + cmake + git +) +conflicts=( + libggml + ggml + llama.cpp + llama.cpp-vulkan + llama.cpp-cuda + llama.cpp-hip +) +provides=(llama.cpp) + +options=(lto !debug) + +source=("git+${url}") +sha256sums=("SKIP") + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + local _cmake_options=( + -B build + -S "${_pkgname}" + -DCMAKE_INSTALL_PREFIX='/usr' + -DBUILD_SHARED_LIBS=ON + -DLLAMA_CURL=ON + -DLLAMA_BUILD_TESTS=OFF + -DLLAMA_USE_SYSTEM_GGML=OFF + -DGGML_ALL_WARNINGS=OFF + -DGGML_ALL_WARNINGS_3RD_PARTY=OFF + -DGGML_BUILD_EXAMPLES=OFF + -DGGML_BUILD_TESTS=OFF + -DGGML_BLAS=ON + -DGGML_BLAS_VENDOR=OpenBLAS + -DGGML_CCACHE=OFF + -DGGML_LTO=ON + -DGGML_RPC=ON + -Wno-dev + ) + cmake "${_cmake_options[@]}" + cmake --build build --config Release +} + +package() { + DESTDIR="${pkgdir}" cmake --install build +} \ No newline at end of file