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