blob: 353e81572a529921a13277dec3478062bfb0ffef (
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
43
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: ARKye03 <rafa03-dev@proton.me>
pkgname=lumen
pkgver=1.6.0
pkgrel=1
pkgdesc="Instant AI Git Commit message, Git changes summary from the CLI (no API key required)"
url="https://github.com/jnsahaj/lumen"
license=('MIT')
arch=('x86_64')
source=("https://github.com/jnsahaj/lumen/archive/refs/tags/v$pkgver/$pkgname-$pkgver.tar.gz")
makedepends=('cargo')
depends=('git')
optdepends=(
'fzf: Required for lumen list command'
'mdcat: Required for pretty output formatting'
'ollama: Local AI provider'
'ollama-cuda: Local AI provider with CUDA'
'ollama-rocm: Local AI provider with ROCm'
)
sha256sums=('a80d2212dabc19652f532e665da624f817b736fa28fff8c58dfcc4bc956af01e')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
RUSTFLAGS='-C link-args=-Wl,-z,shstk' \
cargo build --frozen --release --all-features
}
check() {
cd "$srcdir/$pkgname-$pkgver"
cargo test --frozen --all-features
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm0755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|