diff --git a/README.md b/README.md index c0064ec..36b089d 100644 --- 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 new file mode 100644 index 0000000..261c3cd --- /dev/null +++ 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"