wip
This commit is contained in:
parent
0b39ad6d94
commit
90ba8e7ff7
1 changed files with 5 additions and 5 deletions
10
swww.sh
10
swww.sh
|
@ -35,7 +35,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
checkBuildDependencies() {
|
checkBuildDependencies() {
|
||||||
echo_info "Installing build dependencies.."
|
echo_pkg deps "Installing build dependencies.."
|
||||||
local deps=(git xdg-output liblz4-dev wayland-protocols)
|
local deps=(git xdg-output liblz4-dev wayland-protocols)
|
||||||
# echo "DEBUG: Installing ${deps[@]}"
|
# echo "DEBUG: Installing ${deps[@]}"
|
||||||
checkAndInstall "${deps[@]}"
|
checkAndInstall "${deps[@]}"
|
||||||
|
@ -49,14 +49,14 @@
|
||||||
|
|
||||||
cloneAndBuildSwww() {
|
cloneAndBuildSwww() {
|
||||||
local cloneDir="$(mktemp -d)"
|
local cloneDir="$(mktemp -d)"
|
||||||
echo_info "cloning swww into $cloneDir/swww"
|
echo_pkg clone "cloning swww into $cloneDir/swww"
|
||||||
run git clone --depth=1 https://github.com/LGFae/swww.git $cloneDir/swww
|
run git clone --depth=1 https://github.com/LGFae/swww.git $cloneDir/swww
|
||||||
|
|
||||||
cd $cloneDir/swww || echo_error "error.."
|
cd $cloneDir/swww || echo_error "error.."
|
||||||
|
|
||||||
echo_info "Building swww from source.."
|
echo_pkg build "Building swww from source.."
|
||||||
if run cargo build --release; then
|
if run cargo build --release; then
|
||||||
echo_info "Installing swww and swww-daemon to /bin"
|
echo_pkg install "Installing swww and swww-daemon to /bin"
|
||||||
$_sudo cp target/release/swww{,-daemon} /bin/
|
$_sudo cp target/release/swww{,-daemon} /bin/
|
||||||
else
|
else
|
||||||
echo_error "Could not build with cargo build --release.."
|
echo_error "Could not build with cargo build --release.."
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
arch)
|
arch)
|
||||||
echo_info "Arch detected.. installing directly"
|
echo_pkg arch "Arch detected.. installing directly"
|
||||||
run _install swww
|
run _install swww
|
||||||
;;
|
;;
|
||||||
debian | ubuntu)
|
debian | ubuntu)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue