-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
52 lines (36 loc) · 866 Bytes
/
PKGBUILD
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
44
45
46
47
48
49
50
51
52
# Maintainer: Nirmal Savinda <hwnsavi@gmail.com>
pkgname='terminalai'
pkgver=v0.1.0
pkgrel=1
pkgdesc="AI tool for text and code generation using Gemini and OpenAI APIs."
arch=('x86_64')
url='https://github.com/Elixir-Craft/terminalAI'
license=('MIT')
groups=()
depends=('glibc')
makedepends=('go')
source=("$pkgname::git+$url.git#tag=$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
if [ ! -d build ]; then
mkdir build
fi
export GOPATH="${srcdir}"
go mod tidy
}
build() {
cd "$pkgname"
export GOPATH="${srcdir}"
go build -v -o build ./...
}
# check() {
# cd "$pkgname"
# make -k check
# }
package() {
cd "$pkgname"
install -Dm755 build/terminalai "${pkgdir}/usr/bin/terminalai"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}