Skip to content

Instantly share code, notes, and snippets.

@BoyanXu
Created June 8, 2023 17:31
Show Gist options
  • Save BoyanXu/9961a27587984073458d15cfa47a0ab0 to your computer and use it in GitHub Desktop.
Save BoyanXu/9961a27587984073458d15cfa47a0ab0 to your computer and use it in GitHub Desktop.
RWKV-Runner AUR
pkgname=RWKV-Runner
pkgver=1.2.0
pkgrel=1
pkgdesc="RWKV Runner binary"
arch=('x86_64')
url="https://github.com/josStorer/RWKV-Runner"
license=('MIT')
depends=('python' 'python-pytorch' 'python-pydantic' 'python-psutil' 'python-fastapi' 'python-sse-starlette' 'python-gputil')
makedepends=('git')
source=("${pkgname}_linux_x64::https://github.com/josStorer/RWKV-Runner/releases/download/v$pkgver/RWKV-Runner_linux_x64")
sha256sums=('5ff22007849b05b22b9b1b849885fc7e3efb0a4dd157fa771e8572dc37015772')
package() {
# Create the directory for the binary
install -dm755 "$pkgdir/opt/RWKV-Runner"
# Install the binary to this directory
install -Dm755 "$srcdir/RWKV-Runner_linux_x64" "$pkgdir/opt/RWKV-Runner/RWKV-Runner"
# Create the /usr/bin directory in $pkgdir
install -dm755 "$pkgdir/usr/bin"
# Symlink from /usr/bin to the binary
ln -s /opt/RWKV-Runner/RWKV-Runner "$pkgdir/usr/bin/RWKV-Runner"
# Installation of Python packages not available in Arch Linux repos
pip install --prefix "$pkgdir/usr" rwkv langchain cyac uvicorn
# Add .desktop file
install -Dm644 "$startdir/RWKV-Runner.desktop" "$pkgdir/usr/share/applications/RWKV-Runner.desktop"
}
@BoyanXu
Copy link
Author

BoyanXu commented Jun 8, 2023

RWKV-Runner.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=RWKV-Runner
Exec=/usr/bin/RWKV-Runner
Icon=RWKV-Runner
Comment=Start RWKV-Runner
Terminal=false
Categories=Application;

@BoyanXu
Copy link
Author

BoyanXu commented Jun 8, 2023

Install with an AUR helper: paru -Ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment