summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2897624ed2f92863479a04d0b618ae6b7b5a5e3 (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
# Maintainer: George Woodall <georgewoodall82@gmail.com>
pkgname=tgpt
pkgver=2.7.0
pkgrel=1
pkgdesc="ChatGPT in terminal without needing API keys"
arch=("x86_64" "aarch64" "i386" "i686")
url="https://github.com/aandrew-me/tgpt"
license=('GPL-3.0')
makedepends=('go' 'git')
depends=('glibc')
source=("tgpt-${pkgver}.tar.gz::https://github.com/aandrew-me/tgpt/archive/v${pkgver}.tar.gz")
conflicts=('tgpt-bin' 'tgpt-git')
md5sums=('SKIP')

#pkgver() {
#	cd "$srcdir"
#	rm -rf tgpt
#	git clone --no-checkout https://github.com/aandrew-me/tgpt
#	cd tgpt
#	git describe --tags --abbrev=0 | sed 's/^v//'
#}

build() {
    cd "$srcdir"
    rm -rf tgpt-$pkgver
    tar xvzf tgpt-$pkgver.tar.gz
    cd tgpt-$pkgver
    go build
}

package() {
    cd "${srcdir}/tgpt-${pkgver}"
    GOBIN="${pkgdir}/usr/bin/" go install
}