a005794323
- Output deb files to debs/ folder by default. - Use $HOME/.termux-build for build folder by default (changed from previous $HOME/termux). - Make scripts/run-docker.sh re-use a single container instead of creating new ones for each run. - Avoid mounting the whole Termux build folder in docker. This fixes #294, mmap not supported host folders under OS X. - Add a scripts/update-docker.sh utility for checking for an updated docker image.. - Make build-package.sh support the [-a ARCH] flag to specify arch. - Make aarch64 the default arch (from previous arm). - Try to improve the README a bit.
29 lines
603 B
Bash
Executable File
29 lines
603 B
Bash
Executable File
#!/bin/sh
|
|
set -e -u
|
|
|
|
# Read settings from .termuxrc if existing
|
|
test -f $HOME/.termuxrc && . $HOME/.termuxrc
|
|
: ${TERMUX_TOPDIR:="$HOME/.termux-build"}
|
|
|
|
IMAGE_NAME=termux/package-builder
|
|
CONTAINER_NAME=termux-package-builder
|
|
|
|
echo "Running container '$CONTAINER_NAME' from image '$IMAGE_NAME'..."
|
|
|
|
docker start $CONTAINER_NAME > /dev/null 2> /dev/null || {
|
|
echo "Creating new container..."
|
|
docker run \
|
|
-d \
|
|
--name $CONTAINER_NAME \
|
|
-v $PWD:/root/termux-packages \
|
|
-t $IMAGE_NAME
|
|
}
|
|
|
|
if [ "$#" -eq "0" ]; then
|
|
docker exec -it $CONTAINER_NAME bash
|
|
else
|
|
docker exec -it $CONTAINER_NAME $@
|
|
fi
|
|
|
|
|