Create shared / fast track for certain packages

This commit is contained in:
Ryan Hughes committed 2026-01-10 20:18:35 -05:00
1 parent 1dfa83863d
commit 45a356eb70
253 files changed
+566 -458

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
pkgbase = lmstudio
pkgdesc = Discover, download, and run local LLMs
pkgver = 0.3.35.1
pkgrel = 1
url = https://lmstudio.ai/
arch = x86_64
license = LicenseRef-EULA
makedepends = squashfs-tools
makedepends = graphicsmagick
depends = zlib
depends = hicolor-icon-theme
depends = fuse2
depends = clblast
noextract = lmstudio-0.3.35.1.AppImage
options = !strip
options = !debug
source = lmstudio-0.3.35.1.AppImage::https://installers.lmstudio.ai/linux/x64/0.3.35-1/LM-Studio-0.3.35-1-x64.AppImage
sha256sums = ad9bf98e91ff13b5eea1d26f1457c8d7c4bed24bbb419551d5cbff4840380953
pkgname = lmstudio
@@ -0,0 +1,3 @@
[lmstudio]
source = "cmd"
cmd = "curl -sIL -o /dev/null -w '%{url_effective}\\n' https://lmstudio.ai/download/latest/linux/x64 | sed -E 's|.*x64/([0-9]+\\.[0-9]+\\.[0-9]+)-([0-9]+).*|\\1.\\2|'"
+69
View File
@@ -0,0 +1,69 @@
# Maintainer: envolution
# Contributor: SoleSoul
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=lmstudio
_appname=lm-studio
pkgver=0.3.35.1
_pkgver="${pkgver%.*}-${pkgver##*.}"
pkgrel=1
pkgdesc="Discover, download, and run local LLMs"
arch=('x86_64')
url="https://lmstudio.ai/"
license=('LicenseRef-EULA')
depends=('zlib' 'hicolor-icon-theme' 'fuse2' 'clblast')
makedepends=('squashfs-tools' 'graphicsmagick')
options=(!strip !debug)
_appimage="${pkgname}-${pkgver}.AppImage"
source=("${_appimage}::https://installers.lmstudio.ai/linux/x64/${_pkgver}/LM-Studio-${_pkgver}-x64.AppImage")
sha256sums=('ad9bf98e91ff13b5eea1d26f1457c8d7c4bed24bbb419551d5cbff4840380953')
noextract=("${_appimage}")
prepare() {
rm -rf squashfs-root
chmod +x "${_appimage}"
# get the files we need for packaging
offset=$(./"${_appimage}" --appimage-offset)
unset PAGER # unsquashfs is very picky about pager settings
unsquashfs -q -o "$offset" -d squashfs-root "${_appimage}" \
"${_appname}.desktop" \
"usr/share/icons/hicolor/0x0/apps/lm-studio.png" \
"LICENSE.electron.txt" \
"LICENSES.chromium.html"
# unsquashfs -o "$offset" -l "${_appimage}" | grep -i license
}
build() {
# Adjust .desktop so it will work outside of AppImage container
sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${pkgname}|" \
"squashfs-root/${_appname}.desktop"
sed -i -E "s|Icon=.*|Icon=${pkgname}|" \
"squashfs-root/${_appname}.desktop"
}
package() {
# AppImage
install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${_appname}.AppImage"
install -Dm644 "${srcdir}/squashfs-root/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/EULA" <<< "https://lmstudio.ai/app-terms"
# Desktop file
install -Dm644 "${srcdir}/squashfs-root/${_appname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
#source icon from squashfs
src_icon="$srcdir/squashfs-root/usr/share/icons/hicolor/0x0/apps/lm-studio.png"
sizes=("16x16" "32x32" "48x48" "64x64" "128x128" "256x256")
# Loop through each size and create resized icons
for size in "${sizes[@]}"; do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/$size/apps"
gm convert "$src_icon" -resize "$size" "$pkgdir/usr/share/icons/hicolor/$size/apps/${pkgname}.png"
done
# Symlink executable
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/${pkgname}/${_appname}.AppImage" "${pkgdir}/usr/bin/${pkgname}"
}
# vim:set ts=2 sw=2 et: