summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}