-
Notifications
You must be signed in to change notification settings - Fork 0
/
soundux.py
85 lines (63 loc) · 2.15 KB
/
soundux.py
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Name="soundux"
Version="v0.2.7"
Maintainer="Can202"
Contact="[email protected]"
Arch="x86_64"
Time="long"
License="https://raw.githubusercontent.com/Soundux/Soundux/master/LICENSE"
Depends=["git", "build-essential", "cmake", "libx11-dev", "libxi-dev", "libwebkit2gtk-4.0-dev", "libssl-dev", "libpulse-dev", "libpipewire-0.3-dev"]
idurDepends=["idur-pkg", "idur-exec"]
Conflict=["soundux"]
Description="""
A cross-platform soundboard
"""
Install64="""
# Install instructions here (bash)
# Temp Directory
idur-pkg tmp soundux
cd $(idur-pkg dp soundux)
# Depends "libappindicator3-dev"
mkdir depends
cd depends
idur-pkg download http://ftp.us.debian.org/debian/pool/main/liba/libappindicator/gir1.2-appindicator3-0.1_0.4.92-7_amd64.deb
idur-pkg download http://ftp.us.debian.org/debian/pool/main/libi/libindicator/libindicator3-7_0.5.0-4_amd64.deb
idur-pkg download http://ftp.us.debian.org/debian/pool/main/liba/libappindicator/libappindicator3-dev_0.4.92-7_amd64.deb
idur-pkg download http://ftp.us.debian.org/debian/pool/main/liba/libappindicator/libappindicator3-1_0.4.92-7_amd64.deb
apt -y install ./*
cd ..
# Download Files
idur-pkg download https://github.com/Soundux/Soundux/releases/download/0.2.7/soundux-0.2.7.tar.gz
idur-pkg uncompress soundux-0.2.7.tar.gz
# Build
cd Soundux/
mkdir build
cd build
cmake ..
cmake --build . --config Release
cd ..
# Copy Files
idur-pkg copy build /opt/soundux
idur-pkg copy assets/icon_squared.png /opt/idur/share/icons/soundux.png
# Make Executable (chmod a+x)
echo "#!/usr/bin/bash
cd /opt/soundux
./soundux --reset-mutex" > /opt/idur/bin/soundux
idur-pkg exec /opt/idur/bin/soundux
echo "[Desktop Entry]
Name=Soundux
Exec=idur-exec soundux
Type=Application
Icon=/opt/idur/share/icons/soundux.png
Categories=AudioVideo;Audio;AudioVideoEditing;" > /usr/share/applications/soundux-idur.desktop
idur-pkg exec /usr/share/applications/soundux-idur.desktop
chmod a+rwx -R /opt/soundux/
# Remove Temp Directory
idur-pkg rm-tmp soundux
"""
Remove="""
# Remove instructions here (bash)
idur-pkg rm-tmp soundux
idur-pkg rm /usr/share/applications/soundux-idur.desktop
idur-pkg rm /opt/soundux/
idur-pkg rm /opt/idur/share/icons/soundux.png
"""