aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-15 20:35:02 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-15 20:35:02 -0400
commit3f1978f753785696d3748dbda29c1c4739d36a8b (patch)
tree39c38b9c1334bf48936f43337119577eb7864c09
parent7a8761a80a8230133a7b85a6a94b56b490160c94 (diff)
compiled code in $USE
-rwxr-xr-xbuild.sh2
-rwxr-xr-xsource.sh9
2 files changed, 6 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 0efe21c..ca885a1 100755
--- a/build.sh
+++ b/build.sh
@@ -19,8 +19,8 @@ locale-gen
sh mod.sh
systemctl enable wpa_supplicant@wlp3s0
-sh source.sh
sh config.sh
+sh source.sh
su - $USE -c "/dotfiles/user.sh"
diff --git a/source.sh b/source.sh
index 17d309e..7eda6a4 100755
--- a/source.sh
+++ b/source.sh
@@ -1,15 +1,16 @@
#!/bin/sh
# Installs from source
+su - $USE <<EOF
git clone https://git.suckless.org/st
cd st
curl -O http://st.suckless.org/patches/alpha/st-alpha-0.8.2.diff
git apply st-alpha-0.8.2.diff
-make install
+sed 's/^float alpha =.*$/float alpha = 0.6/' config.def.h > config.h
+sudo make install
cd ..
git clone https://aur.archlinux.org/preloader-signed.git
-chown -R nobody preloader-signed
cd preloader-signed
-su -s/bin/sh nobody -c "makepkg "
-pacman -U preloader-signed-20130208-1-x86_64.pkg.tar.xz
+yes | makepkg -si
cd ..
+EOF