forked from paul-nameless/tg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
45 lines (42 loc) · 1.34 KB
/
PKGBUILD
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
pkgname=telegram-tg-galicarnax
pkgver=0.17.0.r43.b51a5dd
pkgrel=1
pkgdesc="terminal telegram client that really works"
arch=(any)
url="https://github.com/paul-nameless/tg"
license=('Unlicense')
depends=('python-telegram' 'python3')
makedepends=(
'python-build'
'python-installer'
'python-poetry'
'python-setuptools'
'python-wheel'
)
optdepends=(
'libnotify: for notifications, you could also use other programs: see config'
'ffmpeg: to record voice msgs and upload videos correctly'
'urlview: to choose urls when there is multiple in message, use URL_VIEW in config file to use another app, it should accept urls in stdin'
'ranger: can be used to choose file when sending, customizable with FILE_PICKER_CMD'
'nnn: can be used to choose file when sending, customizable with FILE_PICKER_CMD'
'fzf: to create groups and secret chats, used for single and multiple user selection'
)
provides=("telegram-tg" "telegram-tg-git")
conflicts=("telegram-tg" "telegram-tg-git")
source=()
md5sums=('SKIP')
pkgver() {
# cd "$srcdir/$_pkgname"
cd "$startdir"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/\(v\)\(.*\)/\2/')"
}
build() {
# cd "$srcdir/$_pkgname"
cd "$startdir"
python3 setup.py build
}
package() {
# cd "$srcdir/$_pkgname"
cd "$startdir"
python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}