blob: d9a407ed8b0dbdfc02b80d851b25f0d784d5374d (
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
|
# Maintainer: bill-auger <bill-auger@programmer.net>
pkgname=toot
pkgver=0.25.0
pkgrel=1
pkgdesc="CLI and TUI clients for Mastodon federated services"
arch=('any')
url=https://github.com/ihabunek/toot
license=('GPL3')
depends=('python>=3.8' 'python<3.9'
'python-requests' 'python-beautifulsoup4' 'python-urwid' 'python-wcwidth')
source=(https://github.com/ihabunek/toot/archive/${pkgver}.tar.gz)
sha256sums=('dba7aecc748ff574ab2b23aee150724b61730f7547c4c65acf56af1ebd793741')
_release=${pkgname}-${pkgver}
_default_host='floss.social' # TODO: host our own?
prepare()
{
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i "s|^DEFAULT_INSTANCE = .*|DEFAULT_INSTANCE = '${_default_host}'|" ./toot/__init__.py
}
build()
{
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build
}
package()
{
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
|