summaryrefslogtreecommitdiff
path: root/autocutsel.sh
blob: e1d83767d9e0bab6d00a74923dc69a25a05fea7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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