summaryrefslogtreecommitdiff
path: root/slock/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'slock/deploy.sh')
-rwxr-xr-xslock/deploy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/slock/deploy.sh b/slock/deploy.sh
new file mode 100755
index 0000000..6ee800a
--- /dev/null
+++ b/slock/deploy.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+pkgver=1.5
+
+[ -d "~/.local/src" ]mkdir -p ~/.local/src
+
+curl -o ~/.local/src/slock-$pkgver.tar.gz https://dl.suckless.org/tools/slock-$pkgver.tar.gz
+tar -C ~/.local/src/ -xvf ~/local/src/slock-$pkgver.tar.gz
+
+srcdir=~/.local/src/slock-$pkgver
+ cp config.h $srcdir
+make -C $srcdir
+
+doas make -C $srcdir install PREFIX=/usr