diff options
Diffstat (limited to 'autocutsel.sh')
-rwxr-xr-x | autocutsel.sh | 24 |
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 | |||
3 | set -euxo pipefail | ||
4 | |||
5 | VERSION=0.10.0 | ||
6 | OUT_DIR=autocutsel-${VERSION} | ||
7 | TARBALL=autocutsel-0.10.0.tar.gz | ||
8 | |||
9 | if ! mountpoint /output; then | ||
10 | echo "Mount /output to retrieve build artifacts" | ||
11 | exit 1 | ||
12 | fi | ||
13 | |||
14 | curl -Ls https://github.com/sigmike/autocutsel/releases/download/${VERSION}/${TARBALL} | \ | ||
15 | tar -xz -C /build/source --strip-components=1 | ||
16 | cd /build/source | ||
17 | |||
18 | apt-get install -y \ | ||
19 | xorg-dev | ||
20 | |||
21 | ./configure --prefix=/build/target/${OUT_DIR} | ||
22 | make && make install | ||
23 | |||
24 | tar -C /build/target -cvzf /output/$TARBALL $OUT_DIR | ||