summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFrancesco Minnocci2021-04-05 21:48:13 +0200
committerFrancesco Minnocci2021-04-05 21:48:13 +0200
commit9dd2899ff63a30e85447d29132a43bc1268932f2 (patch)
tree37b86fb49a73f57fc34b53a75b24816520eb069a /PKGBUILD
downloadaur-python-torrentstream.tar.gz
Initial package upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..80b271f7066
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
+# Contributor: yochanamarqos
+pkgname=python-torrentstream
+_name=${pkgname#python-}
+pkgver=0.2.2
+pkgrel=1
+pkgdesc="Python simple BitTorrent streaming library based on libtorrent"
+arch=('any')
+url="https://github.com/XayOn/torrentstream"
+license=('none')
+depends=('python' 'python-async-timeout' 'python-rich' 'libtorrent')
+makedepends=('python-setuptools' 'python-dephell')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('374bfd2c3dcf5051d0464aeac13564cb17776f25bb7708d91167d4df74cc83da')
+
+prepare() {
+ cd "$_name-$pkgver"
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_name-$pkgver"
+ export PYTHONHASHSEED=0
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+# vim:set ts=2 sw=2 et: