REPO=/hdd/media/pkg/alpine/v3.17
ls:
simple-builder -repository $(REPO)/x86_64
simple-builder -repository $(REPO)/aarch64
clean:
rm -rf pkg
pkg:
mkdir -p pkg/src/x86_64
rsync --recursive --update --times --verbose $(REPO)/x86_64 ./pkg/src/
mkdir -p pkg/src/aarch64
rsync --recursive --update --times --verbose $(REPO)/aarch64 ./pkg/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) apkbuilder
build: pkg
simple-builder -repository $(REPO)/x86_64 -build
simple-builder -repository $(REPO)/aarch64 -build
.PHONY: clean ls shell build