blob: 1149c300f36528b9a22a03c62e02d4e8b1234bb4 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# -*- sh -*-
# Maintainer: Klaus Alexander Seistrup <$(echo 0x1fd+d59decfa=40 | tr 0-9+a-f=x ka-i@p-u.l)>
# Contributor: Anna Vyalkova <cyber AT sysrq DOT in>
pkgname='offpunk-git'
_pkgname='offpunk'
epoch=5
pkgver=2.6.r0.ga3623c6
pkgrel=2
pkgdesc='Fork of the command-line Gemini client AV-98 with added offline capabilities (latest commit)'
arch=('any')
url='https://git.sr.ht/~lioploum/offpunk'
license=('AGPL-3.0-or-later') # SPDX-License-Identifier: AGPL-3.0-or-later
depends=(
'file'
'less'
'python'
'python-beautifulsoup4'
'python-chardet'
'python-cryptography'
'python-feedparser'
'python-readability-lxml'
'python-requests'
'python-setproctitle'
)
makedepends=(
'coreutils'
'git'
'python-build'
'python-hatchling'
'python-installer'
'python-wheel'
)
optdepends=(
'chafa>=1.10: chafa and ansiwrap are required to render images in terminal'
'timg>1.3.2: view images and videos in the terminal'
'wl-clipboard: copies text to the Wayland clipboard'
'xdg-utils: xdg-open opens a URL in the preferred application'
'xclip: copies text to the X11 clipboard'
'xsel: copies text to the X11 clipboard'
)
provides=('offpunk')
conflicts=('offpunk')
source=("git+$url")
noextract=("$_pkgname")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname" \
CHANGELOG CONTRIBUTORS README.md
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname/tutorial" \
tutorial/*.{gmi,html,py}
install -vDm0644 -t "$pkgdir/usr/share/man/man1" \
man/*.1
}
# eof
|