summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 997c6a18165e785ab35989a280d6593169d2ff33 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: MrHacker <david.munozm@proton.me>
_pkgname=GPT-Telegramus
pkgname=gpt-telegramus-git
pkgver=5.4.2.r0.ge8a3611
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."
url="https://github.com/F33RNI/GPT-Telegramus"
arch=(any)
license=('AGPL-3.0-only')
depends=(
  'python'
  'python-virtualenv'
  'bash'
  )
provides=("$_pkgname")
conflicts=("gpt-telegramus")
backup=(
  "opt/gpt-telegramus/config.json"
  )
source=(
  "${_pkgname}::git+https://github.com/F33RNI/$_pkgname.git"
  "gpt-telegramus.service"
)
validpgpkeys=(
  '2B9D22B41F2AF1042BFCE73A3CA0B9DF1BE7CE09' #MrHacker GPGKey
)
sha256sums=('SKIP'
            '248424fe9c6d049786befbee00ebc270189d8afe16a2a4190d3cd127b3874156')


pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  mkdir -p "$pkgdir/opt"
  cd "$_pkgname"
  cp -r . "$pkgdir/opt/gpt-telegramus"
  cd ..
  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
}