summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45dd1aa51736dec9b35a12502b766179bc0f6b4e (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
#!/hint/bash
# Maintainer: alescdb

pkgname=air-git
pkgver=0.6.10
pkgrel=1
pkgdesc="A simple ChatGPT & Llama-cpp command line with ansi markdown display (written in Rust)"
arch=("x86_64")
url="https://github.com/alescdb/air.git"
license=('Apache')
makedepends=(rust clang)
conflicts=('aid')
source=('air-git::git+https://github.com/alescdb/air.git')
provides=("air=${pkgver%%.r*}")
b2sums=('SKIP')
options=('!strip')

prepare() {
	cd ${pkgname}
}

build() {
	cd ${pkgname}
	cargo build --release
}

package() {
	cd ${pkgname}
	name=${pkgname%%-*}
	install -Dm755 ./target/release/$name -T ${pkgdir}/usr/bin/$name
	ln -sf /usr/bin/$name ${pkgdir}/usr/bin/aid
}