~dricottone/apkbuilds

ref: 45a301f454f9fdfc89489fcf60b248aaf73c9c26 apkbuilds/Makefile -rw-r--r-- 1.4 KiB
45a301f4Dominic Ricottone I missed another update 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