blob: 02b94e75595d9416cbc096f5b28cf3e38bd85c3b (
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
39
40
41
42
|
# Maintainer: NekoLOvO <nekolying@gmail.com>
pkgname=lm-studio-bin
pkgver=0.4.20
pkgrel=1
pkgdesc="Discover, download, and run LLMs locally. Use the chat UI or local server to experiment and develop with local LLMs (Official binary package with bundled Electron)"
arch=('x86_64')
url="https://lmstudio.ai"
license=('custom')
depends=(
'gtk3'
'libnotify'
'nss'
'libxss'
'libxtst'
'xdg-utils'
'at-spi2-core'
'util-linux-libs'
'libsecret'
)
optdepends=('libappindicator')
conflicts=('lmstudio-bin')
provides=('lmstudio-bin')
source=(
"lm-studio"
"https://installers.lmstudio.ai/linux/x64/${pkgver}-${pkgrel}/LM-Studio-${pkgver}-${pkgrel}-x64.deb"
)
sha256sums=('f36b30a1c02919f7fa1831406da8695c888588099d1ceb69efc326bd73d38f29'
'bab75f0a6b32e329042d07f377b5127727fde2ce24f8a4138f695e347ad1e605')
install="lm-studio.install"
options=("!strip")
package() {
bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}/"
sed -i "s|/opt/LM-Studio/lm-studio|lm-studio|g" "${pkgdir}/usr/share/applications/lm-studio.desktop"
# the original icon is 1024x1024, which is not a standard hicolor size and not recognized by the system. Move it to 512x512 to make it work.
mv "${pkgdir}/usr/share/icons/hicolor/0x0/" "${pkgdir}/usr/share/icons/hicolor/512x512/"
install -Dm755 "${srcdir}/lm-studio" "${pkgdir}/usr/bin/lm-studio"
install -Dm644 "${pkgdir}/opt/LM-Studio/LICENSE.electron.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
install -Dm644 "${pkgdir}/opt/LM-Studio/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
}
|