Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2022
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. # Maintainer: Jonathon Fernyhough <jonathon+m2x@dev>
  2. # Contributor: Leo <olorin12+gmail+com>
  3.  
  4. pkgname=hypnotix
  5. pkgver=3.0
  6. pkgrel=0
  7. pkgdesc="An IPTV streaming application"
  8. arch=(any)
  9. url="https://github.com/linuxmint/hypnotix"
  10. license=(GPL3)
  11. depends=(dconf hicolor-icon-theme python-cairo python-gobject python-imdbpy python-requests python-setproctitle python-unidecode mpv xapp)
  12. optdepends=('yt-dlp: YouTube channel support')
  13. source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
  14. b2sums=('e64eb52e708d34cd821f3dc1e539d0f4395dc469e53a90420ea2be20b75b2c6e9d7b5969765228a8be1cab5173c1685de71c7e7e0eed211a49f691f213688540')
  15.  
  16. prepare() {
  17. cd $pkgname-$pkgver
  18. sed -i "s/__DEB_VERSION__/$pkgver/g" usr/lib/hypnotix/hypnotix.py
  19. }
  20.  
  21. build() {
  22. cd $pkgname-$pkgver
  23. make
  24. }
  25.  
  26. package() {
  27. cd $pkgname-$pkgver
  28.  
  29. # fix mpv
  30. sed -i 's/mpv_detach_destroy/mpv_destroy/g' usr/lib/hypnotix/mpv.py
  31.  
  32. install -D -t "$pkgdir"/usr/bin usr/bin/hypnotix
  33. install -D -t "$pkgdir"/usr/lib/hypnotix usr/lib/hypnotix/{common,hypnotix}.py
  34. install -Dm644 -t "$pkgdir"/usr/lib/hypnotix usr/lib/hypnotix/{mpv,xtream}.py
  35. install -Dm644 -t "$pkgdir"/usr/share/applications usr/share/applications/hypnotix.desktop
  36. install -Dm644 -t "$pkgdir"/usr/share/glib-2.0/schemas usr/share/glib-2.0/schemas/org.x.hypnotix.gschema.xml
  37. install -Dm644 -t "$pkgdir"/usr/share/hypnotix usr/share/hypnotix/*.{css,png,ui}
  38. install -Dm644 -t "$pkgdir"/usr/share/hypnotix/pictures usr/share/hypnotix/pictures/*.svg
  39. install -Dm644 -t "$pkgdir"/usr/share/hypnotix/pictures/badges usr/share/hypnotix/pictures/badges/*
  40. install -Dm644 -t "$pkgdir"/usr/share/icons/hicolor/scalable/apps usr/share/icons/hicolor/scalable/apps/hypnotix.svg
  41.  
  42. # Translations
  43. cp -a usr/share/locale "$pkgdir"/usr/share/locale
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement