blob: 8d11e3fe6771fe49f4abde603043e81c97752f3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
_basepkgname=llamafile
pkgname=llamafile-bin
pkgver=0.10.6
pkgrel=1
pkgdesc="Distribute and run LLMs with a single file"
arch=('x86_64')
url="https://github.com/mozilla-ai/llamafile"
license=('Apache-2.0')
optdepends=(
'hip-runtime-amd: AMD GPU-Offloading Support'
'hipblas: Used for static compiling with rocm'
'rocminfo: Used for verifying existence of rocm'
'cuda: Nvidia GPU-Offloading Support'
)
provides=('llamafile' 'whisperfile' 'diffusionfile' 'transcribefile' 'zipalign')
conflicts=('llamafile-git' 'android-sdk-build-tools' 'zipalign')
options=('!strip')
source=("${pkgname}::${url}/releases/download/${pkgver}/llamafile-${pkgver}.zip")
sha256sums=('1d0aacce58bb2254adb8b80abf69e4dfbd7dfa530defc0fcca37ce239217e5dc')
package() {
cd "${_basepkgname}-${pkgver}"
# Install binaries
install -Dm755 bin/diffusionfile -t "${pkgdir}/usr/bin"
install -Dm755 bin/transcribefile -t "${pkgdir}/usr/bin"
install -Dm755 bin/whisperfile -t "${pkgdir}/usr/bin"
install -Dm755 bin/llamafile -t "${pkgdir}/usr/bin"
install -Dm755 bin/zipalign -t "${pkgdir}/usr/bin"
# Install man pages
install -Dm644 share/man/man1/zipalign.1 -t "${pkgdir}/usr/share/man/man1"
install -Dm644 share/man/man1/whisperfile.1 -t "${pkgdir}/usr/share/man/man1"
install -Dm644 share/man/man1/whisper-server.1 -t "${pkgdir}/usr/share/man/man1"
# Install documentation
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
|