Drommer

AceStream PKGBUILD

Oct 11th, 2022 (edited)
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | Software | 0 0
  1. # Maintainer: Jonian Guveli <[email protected]>
  2. # Contributor: Drommer <[email protected]>
  3.  
  4. _distr=debian_10.5
  5. pkgname=acestream-engine
  6. pkgver=3.1.74
  7. pkgrel=3
  8. pkgdesc="ACE Stream Engine - an engine which allows users to watch live streams and video based on torrent protocol"
  9. arch=('x86_64')
  10. url='http://acestream.org'
  11. license=('custom')
  12. depends=('net-tools' 'openssl-1.1' 'python2-apsw' 'python2-chardet' 'python2-idna'
  13. 'python2-requests' 'python2-setuptools' 'python2-urllib3')
  14. optdepends=("pygtk: GTK+ gui support" "python2-libappindicator: GTK+ gui support")
  15. source=("$pkgname-$pkgver.tar.gz::https://download.acestream.media/linux/acestream_${pkgver}_${_distr}_${arch}.tar.gz"
  16. "acestream-engine.service")
  17. sha256sums=('3bcc201fa6dcf6a0ca3d35d549c279df744431d62de586b7a4686a78ae04bfd9'
  18. 'b9863a9dd3ee6d41d18475f5f539107fe81a573f45ca1cb98013441f955f1af0')
  19.  
  20. package() {
  21. mkdir -p "$pkgdir/usr/bin"
  22.  
  23. sed -i "/ROOT=/c\ROOT=\/opt\/acestream" "$srcdir/start-engine"
  24.  
  25. install -Dm755 "$srcdir/acestreamengine" "$pkgdir/opt/acestream/acestreamengine"
  26. install -Dm755 "$srcdir/start-engine" "$pkgdir/opt/acestream/start-engine"
  27. install -Dm644 "$srcdir/acestream.conf" "$pkgdir/opt/acestream/acestream.conf"
  28. install -Dm644 "$srcdir/acestream-engine.service" "$pkgdir/usr/lib/systemd/system/acestream-engine.service"
  29.  
  30. cp -a "$srcdir/data" "$srcdir/lib" "$pkgdir/opt/acestream"
  31.  
  32. ln -sf "/opt/acestream/start-engine" "$pkgdir/usr/bin/acestreamengine"
  33. }
  34.  
Add Comment
Please, Sign In to add comment