#!/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