Created
June 8, 2023 17:31
-
-
Save BoyanXu/9961a27587984073458d15cfa47a0ab0 to your computer and use it in GitHub Desktop.
RWKV-Runner AUR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
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
RWKV-Runner.desktop