summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Minnocci2021-04-05 21:48:13 +0200
committerFrancesco Minnocci2021-04-05 21:48:13 +0200
commit9dd2899ff63a30e85447d29132a43bc1268932f2 (patch)
tree37b86fb49a73f57fc34b53a75b24816520eb069a
downloadaur-python-torrentstream.tar.gz
Initial package upload
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ed3227128bf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-torrentstream
+ pkgdesc = Python simple BitTorrent streaming library based on libtorrent
+ pkgver = 0.2.2
+ pkgrel = 1
+ url = https://github.com/XayOn/torrentstream
+ arch = any
+ license = none
+ makedepends = python-setuptools
+ makedepends = python-dephell
+ depends = python
+ depends = python-async-timeout
+ depends = python-rich
+ depends = libtorrent
+ source = https://pypi.org/packages/source/t/torrentstream/torrentstream-0.2.2.tar.gz
+ sha256sums = 374bfd2c3dcf5051d0464aeac13564cb17776f25bb7708d91167d4df74cc83da
+
+pkgname = python-torrentstream
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: