summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7214ae725e0a3141cffd2b3af708f73c7603805 (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
# Maintainer: drpebcak <tayworm@gmail.com>
pkgname='gptscript'
pkgver="v0.5.0"
pkgrel=1
pkgdesc="Scripting AI for fun and profit"
arch=('x86_64')
url="https://gptscript.ai/"
license=('Apache')
makedepends=('git' 'go' 'npm' 'yarn')
source=("gptscript-$pkgver::git+https://github.com/gptscript-ai/gptscript#tag=$pkgver")
noextract=()
md5sums=('SKIP')
conflicts=('gptscript-git')

build() {
	cd "gptscript-$pkgver"
	make all
}

check() {
	cd "gptscript-$pkgver"
	./bin/gptscript -v
}

package() {
	cd "gptscript-$pkgver"
	install -Dm755 bin/gptscript "$pkgdir"/usr/bin/gptscript
}