blob: bfbd6978db4c077942edf3d209a7febab8edbd45 (
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: ARKye03 <rafa03-dev@proton.me>
pkgname=lumen-git
_pkgname=lumen
pkgver=r161.f4f958c # Can't be empty, will be set dynamically
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=("git+$url")
makedepends=('cargo')
depends=('git')
optdepends=(
'fzf: Required for lumen list command'
'mdcat: Required for pretty output formatting'
)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "$srcdir/$_pkgname"
cargo fetch --locked --target "$(rustc -vV | sed -n 's|host: ||p')"
}
build() {
cd "$srcdir/$_pkgname"
cargo build --frozen --release --all-features
}
check() {
cd "$srcdir/$_pkgname"
cargo test --frozen --all-features
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}
|