summarylogtreecommitdiffstats
path: root/docker_build.bash
blob: 55e9683945b3fcc69cf9b72f4119cb3a55883255 (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 makepkg

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