summaryrefslogtreecommitdiff
path: root/pcr/toot
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-10-22 11:08:48 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2019-10-22 11:22:03 -0400
commit3a296041a64f841b6beba7a9525662c7960317c7 (patch)
tree8318b97cc6d761f824d5dc907fa35e7a6f1c70ba /pcr/toot
parent0dc9f6c762e05d9463051922c3d847fe9d31e5e3 (diff)
downloadabslibre-3a296041a64f841b6beba7a9525662c7960317c7.tar.gz
abslibre-3a296041a64f841b6beba7a9525662c7960317c7.tar.bz2
abslibre-3a296041a64f841b6beba7a9525662c7960317c7.zip
[toot]: add package to [pcr]
Diffstat (limited to 'pcr/toot')
-rw-r--r--pcr/toot/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/toot/PKGBUILD b/pcr/toot/PKGBUILD
new file mode 100644
index 000000000..ed9ee9f0e
--- /dev/null
+++ b/pcr/toot/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: bill-auger <bill-auger@programmer.net>
+
+
+pkgname=toot
+pkgver=0.24.0
+pkgrel=1
+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-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
+}