summarylogtreecommitdiffstats
path: root/build.sh
blob: c2df154d34016628ddaf01b3218395b3fb155fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

docker run \
    --rm \
    -v $(pwd):/srv \
    --platform linux/amd64 \
    --entrypoint /usr/bin/bash \
    --workdir /srv \
    docker.io/archlinux -c '\
        pacman -Syu --noconfirm pacman-contrib pacman git sudo binutils go gcc && \
        git clean -fdx && \
        chmod a+w PKGBUILD .SRCINFO . && \
        sudo -u nobody updpkgsums && \
        sudo -u nobody makepkg --printsrcinfo > .SRCINFO && \
        GOPATH=/srv/go GOCACHE=/srv/cache sudo -E -u nobody makepkg \
        chmod a-w PKGBUILD .SRCINFO . \
    '