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

# This script builds the package with Docker. This way, you don't have to
# install the `makedepends` nor the `checkdepends`. Run from current directory.

docker run --rm \
  --dns ${DNS:-8.8.8.8} \
  --env BUILD_USER_GID=$(id -u) \
  --env BUILD_USER_UID=$(id -u) \
  --env ROOTLESS=${ROOTLESS:-no} \
  --volume $(pwd):/mnt/project \
  implementing/builder:latest makepkg

# The pkgver will be updated; so we restore it.
git checkout PKGBUILD