~dricottone/apkbuilds

ref: 5f4793401128c761a5f3fc057c1c742fa514d915 apkbuilds/Makefile -rw-r--r-- 752 bytes
5f479340Dominic Ricottone Initial commit 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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