From 9a77bced44473496cc35a6e1a0995bf95817871d Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Sun, 12 May 2019 19:12:07 +0000 Subject: Initial import --- autocutsel.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 autocutsel.sh (limited to 'autocutsel.sh') diff --git a/autocutsel.sh b/autocutsel.sh new file mode 100755 index 0000000..e1d8376 --- /dev/null +++ b/autocutsel.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -euxo pipefail + +VERSION=0.10.0 +OUT_DIR=autocutsel-${VERSION} +TARBALL=autocutsel-0.10.0.tar.gz + +if ! mountpoint /output; then + echo "Mount /output to retrieve build artifacts" + exit 1 +fi + +curl -Ls https://github.com/sigmike/autocutsel/releases/download/${VERSION}/${TARBALL} | \ + tar -xz -C /build/source --strip-components=1 +cd /build/source + +apt-get install -y \ + xorg-dev + +./configure --prefix=/build/target/${OUT_DIR} +make && make install + +tar -C /build/target -cvzf /output/$TARBALL $OUT_DIR -- cgit v1.2.3