Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Jonathon Fernyhough <jonathon+m2x@dev>
- # Contributor: Leo <olorin12+gmail+com>
- pkgname=hypnotix
- pkgver=3.0
- pkgrel=0
- pkgdesc="An IPTV streaming application"
- arch=(any)
- url="https://github.com/linuxmint/hypnotix"
- license=(GPL3)
- depends=(dconf hicolor-icon-theme python-cairo python-gobject python-imdbpy python-requests python-setproctitle python-unidecode mpv xapp)
- optdepends=('yt-dlp: YouTube channel support')
- source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
- b2sums=('e64eb52e708d34cd821f3dc1e539d0f4395dc469e53a90420ea2be20b75b2c6e9d7b5969765228a8be1cab5173c1685de71c7e7e0eed211a49f691f213688540')
- prepare() {
- cd $pkgname-$pkgver
- sed -i "s/__DEB_VERSION__/$pkgver/g" usr/lib/hypnotix/hypnotix.py
- }
- build() {
- cd $pkgname-$pkgver
- make
- }
- package() {
- cd $pkgname-$pkgver
- # fix mpv
- sed -i 's/mpv_detach_destroy/mpv_destroy/g' usr/lib/hypnotix/mpv.py
- install -D -t "$pkgdir"/usr/bin usr/bin/hypnotix
- install -D -t "$pkgdir"/usr/lib/hypnotix usr/lib/hypnotix/{common,hypnotix}.py
- install -Dm644 -t "$pkgdir"/usr/lib/hypnotix usr/lib/hypnotix/{mpv,xtream}.py
- install -Dm644 -t "$pkgdir"/usr/share/applications usr/share/applications/hypnotix.desktop
- install -Dm644 -t "$pkgdir"/usr/share/glib-2.0/schemas usr/share/glib-2.0/schemas/org.x.hypnotix.gschema.xml
- install -Dm644 -t "$pkgdir"/usr/share/hypnotix usr/share/hypnotix/*.{css,png,ui}
- install -Dm644 -t "$pkgdir"/usr/share/hypnotix/pictures usr/share/hypnotix/pictures/*.svg
- install -Dm644 -t "$pkgdir"/usr/share/hypnotix/pictures/badges usr/share/hypnotix/pictures/badges/*
- install -Dm644 -t "$pkgdir"/usr/share/icons/hicolor/scalable/apps usr/share/icons/hicolor/scalable/apps/hypnotix.svg
- # Translations
- cp -a usr/share/locale "$pkgdir"/usr/share/locale
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement