REPO=admin-arch4:/tank/data/pkg/alpine/v3.19
ls:
simple-builder -repository $(REPO)/x86_64
simple-builder -repository $(REPO)/aarch64
clean:
rm -rf pkg
pkg:
mkdir -p pkg/x86_64
rsync --recursive --update --times --verbose $(REPO)/x86_64 ./src/
mkdir -p pkg/aarch64
rsync --recursive --update --times --verbose $(REPO)/aarch64 ./src/
PWD=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
shell:
docker run --rm --interactive --tty --entrypoint sh \
--mount type=bind,src=$(PWD)src,dst=/home/builder/src \
--mount type=bind,src=$(PWD)pkg,dst=/home/builder/packages/src \
$(MOUNTS) registry.intra.dominic-ricottone.com/apkbuilder:latest
build: pkg
DOCKER_API_VERSION=1.44 simple-builder -repository $(REPO)/x86_64 -build
DOCKER_API_VERSION=1.44 simple-builder -repository $(REPO)/aarch64 -build
.PHONY: clean ls shell build