blob: c7cf35acd01e5065e5e3c1a380f9b9bc1302663f (
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
|
# Maintainer: uwuclxdy <https://github.com/uwuclxdy>
pkgname=larpshell-git
pkgver=r153.c08d7df
pkgrel=1
pkgdesc='Convert natural language to shell commands using an LLM'
arch=('x86_64')
url='https://github.com/uwuclxdy/larpshell'
license=('GPL-3.0-or-later')
makedepends=('cargo' 'git')
depends=('gcc-libs' 'glibc')
options=('!lto' '!debug')
conflicts=('larpshell')
provides=('larpshell')
source=("$pkgname::git+https://github.com/uwuclxdy/larpshell.git#branch=mommy")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "$srcdir/$pkgname"
install -Dm0755 "target/release/larpshell" "$pkgdir/usr/bin/larpshell"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|