2018-07-27 01:53:53 +00:00
|
|
|
CHROOT_NAME = x86_64
|
|
|
|
CHROOT_COPY = notsystemd-tests-$(@F)
|
|
|
|
|
|
|
|
GIT = https://git.parabola.nu/~lukeshu/systemd.git
|
2018-07-27 02:35:49 +00:00
|
|
|
GIT.systemd-232 = d559e0e3b144c280924e4ac838830234c226acf9
|
2018-07-27 01:53:53 +00:00
|
|
|
GIT.systemd-cur = systemd/v239.0-2.parabola1
|
|
|
|
GIT.systemd-not = notsystemd/v239.1
|
|
|
|
|
2018-07-27 17:42:31 +00:00
|
|
|
all: packages/systemd-232 packages/systemd-cur packages/systemd-not
|
2018-07-27 01:53:53 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
src/systemd: .var.GIT
|
|
|
|
mkdir -p '$(@D)'
|
|
|
|
git clone --mirror '$(GIT)' '$@'
|
2018-07-26 22:26:45 +00:00
|
|
|
|
|
|
|
id_% id_%.pub:
|
|
|
|
ssh-keygen -P '' -f 'id_$*'
|
2018-07-27 01:53:53 +00:00
|
|
|
|
|
|
|
packages/%: .var.GIT.% abs/% src/systemd
|
|
|
|
rm -rf -- '$@' '$@.tmp'
|
|
|
|
mkdir -p '$(@D)'
|
|
|
|
cp -aT -- 'abs/$(@F)' '$@.tmp'
|
|
|
|
sed -i 's,@COMMIT@,$(GIT.$(@F)),g' -- '$@.tmp/PKGBUILD'
|
|
|
|
cd $@.tmp && sudo "PKGDEST=$$PWD" "SRCPKGDEST=$$PWD" "LOGDEST=$$PWD" 'SRCDEST=$(CURDIR)/src' libremakepkg -n '$(CHROOT_NAME)' -l '$(CHROOT_COPY)'
|
|
|
|
mv -T -- '$@.tmp' '$@'
|
|
|
|
|
|
|
|
packages/systemd-232: $(wildcard abs/systemd-232/*)
|
|
|
|
packages/systemd-cur: $(wildcard abs/systemd-cur/*)
|
|
|
|
packages/systemd-not: $(wildcard abs/systemd-not/*)
|
|
|
|
|
|
|
|
# Boilerplate ########################################################
|
|
|
|
|
|
|
|
.var.%: FORCE
|
|
|
|
@printf '%s' $(call quote.shell,$($*)) | sed 's/^/#/' | ./write-ifchanged '$@'
|
|
|
|
-include $(wildcard .var.*)
|
|
|
|
|
|
|
|
.PHONY: FORCE
|
|
|
|
.SECONDARY:
|
|
|
|
.DELETE_ON_ERROR:
|
|
|
|
|
|
|
|
define at.nl
|
|
|
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
# I put this as the last line in the file because it confuses Emacs
|
|
|
|
# syntax highlighting and makes the remainder of the file difficult to
|
|
|
|
# edit.
|
|
|
|
quote.shell = $(subst $(at.nl),'$$'\n'','$(subst ','\'',$1)')
|