Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2021-07-18 18:27:14 +0200
committerLevente Polyak <anthraxx@archlinux.org>2021-11-18 20:31:23 +0100
commitdacde204c91b9c5cb25ac793c17e13d287187b57 (patch)
tree5bb42b72e661ad58a9c27b0437c280497840b450 /Makefile
parent1f1f6be8892d95eb62fb8d0d190f816b3db32d8e (diff)
makerepropkg: use correct devtools makepkg.conf files from dist
Use the recorded buildtool in order to download the matching dist package and use the appropriate makepkg.conf for reproducing the package. This is required as the flags are not recorded in the BUILDINFO hence we need to provide the matching config that declared those flags.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7b991f5..6e0b3dd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
V=20210202
+BUILDTOOLVER ?= $(V)-git
PREFIX = /usr/local
MANDIR = $(PREFIX)/share/man
@@ -92,7 +93,7 @@ edit = sed -e "s|@pkgdatadir[@]|$(PREFIX)/share/devtools|g"
%: %.in Makefile lib/common.sh
@echo "GEN $@"
@$(RM) "$@"
- @{ echo -n 'm4_changequote([[[,]]])'; cat $@.in; } | m4 -P --define=m4_devtools_version=$V | $(edit) >$@
+ @{ echo -n 'm4_changequote([[[,]]])'; cat $@.in; } | m4 -P --define=m4_devtools_version=$(BUILDTOOLVER) | $(edit) >$@
@chmod a-w "$@"
@chmod +x "$@"
@bash -O extglob -n "$@"