makedeb


tgpt-bin 2.8.2-0


ChatGPT in terminal without needing API keys

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for tgpt-bin.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: George Woodall (AUR) <georgewoodall82@gmail.com>
pkgname=tgpt-bin
pkgver=2.8.2
pkgrel=0
pkgdesc="ChatGPT in terminal without needing API keys"
arch=("amd64" "arm64" "i386")
url="https://github.com/aandrew-me/tgpt"
license=('GPL-3.0')
conflicts=('tgpt' 'tgpt-git')
provides=('tgpt')
source=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
#wget  -o /dev/null -O- https://github.com/aandrew-me/tgpt/releases/tag/v2.8.2 | grep "tgpt-linux-amd64" | cut -d ' ' -f 1
sha256sums=('cd781f605a62ae178bedc7e2c7c5f2e778a1436d333c3533b7f55de4655f315d')

package() {
    cd "$srcdir"
    install -Dm755 tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver} "$pkgdir/usr/bin/tgpt"
    install -d "$pkgdir/usr/share/doc/$pkgname"
    ln -s /usr/share/common-licenses/GPL-3 "$pkgdir/usr/share/doc/$pkgname/"
}