commit ac8390ba6690c7f228c8c7f5194cd0b4c6b28d23
parent 99daabf58da8c293cd759bb1e37b887259556cc8
Author: Raymond Li <hi@raymond.li>
Date: Sun, 10 May 2020 15:13:17 -0400
Add install.sh
#158
Diffstat:
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -85,13 +85,21 @@ If there's no packaged version available - think carefully, since you're using a
**If you want to build a non-debug version, you should tag your build before configuring.** For example: `git tag -f "git-$(git rev-parse --short HEAD)"` will add a tag with the short commit ID, which will be used for the version info. Issues asking about ASAN/complaints about i3lock-color being slow / etc will likely be closed. i3lock-color uses GNU autotools for building.
-To build i3lock-color, first install the dependencies listed above, then clone the repo and run the build script:
+To use i3lock-color, first install the dependencies listed above, then clone the repo:
```
git clone https://github.com/Raymo111/i3lock-color.git
cd i3lock-color
+```
+To build without installing, run:
+```
chmod +x build.sh
./build.sh
```
+To install after building, run:
+```
+chmod +x install.sh
+./install.sh
+```
You may choose to modify the script based on your needs/OS/distro.
## Arch Linux Packages
diff --git a/install.sh b/install.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+autoreconf -fiv
+
+rm -rf build/
+mkdir -p build && cd build/
+
+../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
+
+make install
+
+install -Dm644 LICENSE "/usr/share/licenses/i3lock-color/LICENSE"