blob: 2e829afe6919dc983c074716fd5ec7686cdc1a6f (
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: George Woodall <georgewoodall82@gmail.com>
pkgname=tgpt-git
pkgver=1.6.0.r1.gc26ffef
pkgrel=2
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::git+https://github.com/aandrew-me/tgpt.git")
conflicts=('tgpt-bin' 'tgpt')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/tgpt"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/tgpt"
go build
}
package() {
cd "${srcdir}/tgpt"
GOBIN="${pkgdir}/usr/bin/" go install
}
|