-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix-install-cosmic-wallpapers
executable file
·81 lines (66 loc) · 1.57 KB
/
mix-install-cosmic-wallpapers
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
#!/bin/sh
### Package: mix-install-cosmic-wallpapers
### Version: v20241001.2300
### Author: Michael Gan "xmixahlx" [email protected]
### License: GPLv3
### Script Dependencies: (none)
## OVERRIDES
# MIXTOOLS
if [ -z $MIXTOOLSDIR ]; then
MIXTOOLSDIR="`pwd`"
fi
# INSTALLDEPS
if [ -z $INSTALLDEPS ]; then
INSTALLDEPS=debian
fi
# GITBRANCH
if [ -z $GITBRANCH ]; then
GITBRANCH=master
fi
echo "*** GITBRANCH selected is $GITBRANCH."
# DESTDIR
if [ -z $DESTDIR ]; then
DESTDIR=/usr
fi
echo "*** DESTDIR selected is $DESTDIR."
## VARS
RESDIR=$MIXTOOLSDIR/resources
DEVDIR=$MIXTOOLSDIR/upstream
GITURL=https://github.com
GITREPO=pop-os
GITTREE=cosmic-wallpapers
PKGDIR=$GITTREE\_$GITBRANCH
MULTILIBDIR=`gcc -dumpmachine`
## INSTALLDEPS
# Debian Dependencies
if [ $INSTALLDEPS = debian ]; then
sudo apt-get -y install build-essential coreutils libc-bin git \
just libglvnd-dev libwayland-dev libseat-dev libxkbcommon-dev libinput-dev \
udev dbus libdbus-1-dev libpam0g-dev libpixman-1-dev libssl-dev libflatpak-dev \
libsystemd-dev libpulse-dev libexpat1-dev libfontconfig-dev \
libfreetype-dev mold libgbm-dev libclang-dev libpipewire-0.3-dev
fi
## PREP
set -e
mkdir -p $DEVDIR
cd $DEVDIR
## GIT
[ -d $PKGDIR ] || git clone --depth=1 $GITURL/$GITREPO/$GITTREE.git --branch=$GITBRANCH $PKGDIR
cd $PKGDIR
git clean -dfx
git reset --hard
git pull
git submodule update --init
## PATCH
if [ "$DESTDIR" != /usr ]; then
sed -i -e s+PREFIX=/usr+PREFIX="$DESTDIR"+g Makefile
fi
## IGNORE RUST VERSION
rm -f rust-toolchain*
## BUILD
#make
## INSTALL
sudo make install
## EXIT
exit
## ENJOY