# Maintainer: exponential # Contributor: George Woodall (AUR) pkgname=tgpt-bin pkgver="2.8.3" pkgrel=0 pkgdesc="ChatGPT in terminal without needing API keys" arch=("amd64" "i386" "arm64" "arm") url="https://github.com/aandrew-me/tgpt" license=('GPL-3.0') conflicts=('tgpt' 'tgpt-git') provides=('tgpt') source_amd64=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}") source_i386=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}") source_arm64=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}") source_arm=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}") sha256sums_amd64=('f94855e8270a05b61c149cc56a52209a8cec4a262eebc237ee826836321f414f') sha256sums_i386=('b5fb8ea03177bff9076713cff5d04812dc4f407caa5907a7b6489a0e61186669') sha256sums_arm64=('b373985308f49b542d86cf9b3fda40950abb6af55e7a8b5b46bb6580bce74f78') sha256sums_arm=('33d7567df81492774067d9e047602595f4844efff6bfec8a827498cdf63dd8a3') 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/" }