yochananmarqos

python-torrentstream

Apr 5th, 2021
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python-torrentstream
  2. _name=${pkgname#python-}
  3. pkgver=0.2.2
  4. pkgrel=1
  5. pkgdesc="Python simple BitTorrent streaming library based on libtorrent"
  6. arch=('any')
  7. url="https://github.com/XayOn/torrentstream"
  8. license=('none')
  9. depends=('python' 'python-async-timeout' 'python-rich' 'libtorrent')
  10. makedepends=('python-setuptools' 'python-dephell')
  11. source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
  12. sha256sums=('374bfd2c3dcf5051d0464aeac13564cb17776f25bb7708d91167d4df74cc83da')
  13.  
  14. prepare() {
  15.     cd "$_name-$pkgver"
  16.     dephell deps convert --from pyproject.toml --to setup.py
  17. }
  18.  
  19. build() {
  20.     cd "$_name-$pkgver"
  21.     python setup.py build
  22. }
  23.  
  24. package() {
  25.     cd "$_name-$pkgver"
  26.     export PYTHONHASHSEED=0
  27.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  28. }
RAW Paste Data