# Maintainer: bill-auger 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 }