~dricottone/apkbuilds

ref: 5ff31d7d8b8eda21faa426c1e4c256b32cff66c5 apkbuilds/Makefile -rw-r--r-- 1.4 KiB
5ff31d7dDominic Ricottone Some further massaging for Alpine v3.20 a month 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
clean:
	rm -rf pkg

pkg:
	mkdir pkg

pkg/x86_64:
	mkdir pkg/x86_64
	rsync --recursive --update --times --verbose admin-arch4:/tank/data/pkg/alpine/v3.20/x86_64 ./pkg/x86_64

pkg/aarch64:
	mkdir pkg/aarch64
	rsync --recursive --update --times --verbose admin-arch4:/tank/data/pkg/alpine/v3.20/aarch64 ./pkg/aarch64

PWD=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))

shell:
	docker run --platform linux/arm64 --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

ls-native:
	simple-builder -repository admin-arch4:/tank/data/pkg/alpine/v3.20/x86_64

build-native: pkg pkg/x86_64
	docker pull --platform linux/amd64 registry.intra.dominic-ricottone.com/apkbuilder:latest
	simple-builder -repository admin-arch4:/tank/data/pkg/alpine/v3.20/x86_64 -build
	docker image rm registry.intra.dominic-ricottone.com/apkbuilder:latest

ls-arm:
	simple-builder -repository admin-arch4:/tank/data/pkg/alpine/v3.20/aarch64

crossbuild-arm: pkg pkg/aarch64
	docker pull --platform linux/arm64 registry.intra.dominic-ricottone.com/apkbuilder:latest
	simple-builder -repository admin-arch4:/tank/data/pkg/alpine/v3.20/aarch64 -build
	docker image rm registry.intra.dominic-ricottone.com/apkbuilder:latest

build: build-native crossbuild-arm

.PHONY: clean ls-native ls-arm shell build build-native crossbuild-arm