summaryrefslogtreecommitdiff
path: root/autocutsel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autocutsel.sh')
-rwxr-xr-xautocutsel.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/autocutsel.sh b/autocutsel.sh
new file mode 100755
index 0000000..e1d8376
--- /dev/null
+++ b/autocutsel.sh
@@ -0,0 +1,24 @@
1#!/bin/bash
2
3set -euxo pipefail
4
5VERSION=0.10.0
6OUT_DIR=autocutsel-${VERSION}
7TARBALL=autocutsel-0.10.0.tar.gz
8
9if ! mountpoint /output; then
10 echo "Mount /output to retrieve build artifacts"
11 exit 1
12fi
13
14curl -Ls https://github.com/sigmike/autocutsel/releases/download/${VERSION}/${TARBALL} | \
15 tar -xz -C /build/source --strip-components=1
16cd /build/source
17
18apt-get install -y \
19 xorg-dev
20
21./configure --prefix=/build/target/${OUT_DIR}
22make && make install
23
24tar -C /build/target -cvzf /output/$TARBALL $OUT_DIR