blob: 2e914e83b222925c923f1e18d00ce652f1414723 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
IMAGE_NAME ?= makepkg.local
IMAGE_TAG ?= latest
UID = $(shell id -u)
GID = $(shell id -g)
build: clean
makepkg
makepkg --printsrcinfo > .SRCINFO
clean:
rm -rf *.tar.* *.pkg.* src pkg ./powerstation
in-docker: clean
docker build -t $(IMAGE_NAME):$(IMAGE_TAG) .
docker run -it --rm \
--env HOME='/home/build' \
--volume $(PWD):/src \
--workdir /src \
--user $(UID):$(GID) \
$(IMAGE_NAME):$(IMAGE_TAG) \
make build
|