# Maintainer: exponential # Contributor: George Woodall (AUR) 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/" }