-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
39 lines (34 loc) · 1.3 KB
/
get-dependencies.sh
File metadata and controls
39 lines (34 loc) · 1.3 KB
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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
dbus-glib \
desktop-file-utils \
libdbusmenu-gtk3 \
libdbusmenu-glib \
mime-types \
startup-notification \
ttf-dejavu
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano ffmpeg-mini
# If the application needs to be manually built that has to be done down here
mkdir -p ./AppDir/bin
if [ "$ARCH" = "x86_64" ]; then
echo "Getting Phantom Satellite binary..."
echo "---------------------------------------------------------------"
TARBALL_LINK=$(wget --retry-connrefused --tries=30 \
https://api.github.com/repos/DCFUKSURMOM/Phantom-Satellite/releases/latest -O - \
| sed 's/[()",{} ]/\n/g' | grep -o -m 1 'https.*releases.*linux-x86_64-gtk3.*tar.xz')
echo "$TARBALL_LINK" | awk -F'/' '{print $(NF-1)}' | tr -d 'v' > ~/version
wget "$TARBALL_LINK" -O /tmp/phantomsatellite.tar.xz
tar xvf /tmp/phantomsatellite.tar.xz -C /usr/lib
rm -f /tmp/phantomsatellite.tar.xz
else
make-aur-package gtk2
sed -i -e 's|-O3|-O2|' /etc/makepkg.conf
make-aur-package
fi
mv -v /usr/lib/phantomsatellite/* ./AppDir/bin