summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75330c847c4efdc3b5cb3236d4b35f5582d2c673 (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=aid-git
pkgver=0.5.0
pkgrel=1
pkgdesc="A simple ChatGPT command line with basic markdown display"
arch=("x86_64")
url="https://github.com/alescdb/aid"
license=('Apache')
makedepends=(dart make)
source=("git+https://github.com/alescdb/aid.git")
provides=("aid=${pkgver%%.r*}")
b2sums=('SKIP')
options=('!strip')

prepare() {
	dart --disable-analytics &>/dev/null
	cd ${pkgname%%-*}
	dart pub get
}

build() {
	cd ${pkgname%%-*}
	mkdir -p ./release
	dart compile exe --output ./release/aid bin/aid.dart
}

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