blob: 561138e8c402ca92be0e8326137599a72a4e29be (
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
|
# Maintainer: bill-auger <bill-auger@programmer.net>
pkgname=toot
pkgver=0.24.0
pkgrel=2
pkgdesc="CLI and TUI clients for Mastodon federated services"
arch=('any')
url=https://github.com/ihabunek/toot
license=('GPL3')
depends=('python-requests' 'python-beautifulsoup4' 'python-urwid' 'python-wcwidth')
# source=(https://github.com/ihabunek/toot/releases/download/${pkgver}/${_release}.tar.gz)
source=(https://github.com/ihabunek/toot/archive/${pkgver}.tar.gz)
#sha256sums=('830b6ffc04c3a80a63045a112a1df219879a6576bc20919a55f93dd5bc590371')
sha256sums=('645db4d1284cde8d29de1e6852efcb84284e66b55a1847c71b7f32a6ebe658ee')
_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
}
|