40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Maintainer: MrHacker <david.munozm@proton.me>
|
|
pkgname=gpt-telegramus
|
|
pkgver=5.2.5
|
|
pkgrel=1
|
|
pkgdesc="GPT-Telegramus is a Telegram bot that allows you to interact with various large language models (LLMs), including ChatGPT, Bing AI (also known as Sidney or EdgeGPT), and Gemini."
|
|
arch=('x86_64')
|
|
url="https://github.com/F33RNI/GPT-Telegramus"
|
|
license=('AGPL-3.0-only')
|
|
depends=(
|
|
'python'
|
|
'python-virtualenv'
|
|
)
|
|
provides=(GPT-Telegramus)
|
|
backup=(
|
|
"opt/gpt-telegramus/config.json"
|
|
)
|
|
source_x86_64=(
|
|
"https://github.com/F33RNI/GPT-Telegramus/archive/refs/tags/${pkgver}.tar.gz"
|
|
"gpt-telegramus.service"
|
|
"${pkgver}.tar.gz.sig"
|
|
)
|
|
validpgpkeys=(
|
|
'2B9D22B41F2AF1042BFCE73A3CA0B9DF1BE7CE09' #MrHacker GPGKey
|
|
)
|
|
sha256sums_x86_64=('91f23324d7f69db44f86c4220224f7f71d95d3199be31f738312ca6ccf867231'
|
|
'248424fe9c6d049786befbee00ebc270189d8afe16a2a4190d3cd127b3874156'
|
|
'SKIP')
|
|
|
|
|
|
package() {
|
|
# cd "$srcdir/$pkgname-$pkgver"
|
|
mkdir -p "$pkgdir/opt"
|
|
tar xf "${pkgver}.tar.gz" -C "$pkgdir/opt/"
|
|
mv "$pkgdir/opt/GPT-Telegramus-$pkgver" "$pkgdir/opt/gpt-telegramus"
|
|
install -Dm644 "gpt-telegramus.service" "$pkgdir/usr/lib/systemd/system/gpt-telegramus.service"
|
|
cd "$pkgdir/opt/gpt-telegramus"
|
|
chmod +x run.sh
|
|
python -m venv venv
|
|
}
|