blob: 2d95d2a7e9cf2408902ebca4d78a9b71e59bb104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# This is just the package from the linuxmint repositories modified to work with wayland
# Maintainer: pusi77 <pusineriandrea+gmail+com>
pkgname=hypnotix-wayland
pkgver=4.9
pkgrel=1
pkgdesc="An IPTV streaming application. (With Wayland support)."
arch=(any)
url="https://github.com/linuxmint/hypnotix"
license=(GPL3)
depends=(
"dconf"
"hicolor-icon-theme"
"mpv"
"python-cairo"
"python-cinemagoer" #aur
"python-gobject"
"python-requests"
"python-setproctitle"
"python-unidecode"
"xapp"
)
conflicts=(hypnotix hypnotix-git)
source=("hypnotix-$pkgver.tar.gz::https://github.com/linuxmint/hypnotix/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('c482202f3f57187be85374927c0d89cba478fa9fa0752dc0b56d261efbe2f0f8')
prepare() {
cd hypnotix-$pkgver
sed -i "s/__DEB_VERSION__/$pkgver/g" usr/lib/hypnotix/hypnotix.py
}
build() {
cd hypnotix-$pkgver
#! add a custom script to run the app under wayand if you're using wayland
sed -i '2d' usr/bin/hypnotix
sh -c "echo 'if [ \$WAYLAND_DISPLAY=wayland-0 ]
then
GDK_BACKEND=x11 /usr/lib/hypnotix/hypnotix.py &
else
/usr/lib/hypnotix/hypnotix.py &
fi'" >> usr/bin/hypnotix
sed -i '1677a \ options["vo"] = "x11"' usr/lib/hypnotix/hypnotix.py
}
package() {
cd hypnotix-$pkgver
cp -a usr/ "$pkgdir"/usr/
}
|