1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00
alacritty/.copr/Makefile
2019-06-09 16:30:42 +00:00

14 lines
478 B
Makefile

version := $(shell rpmspec -q --srpm --qf "%{version}\n" extra/linux/redhat/alacritty.spec)
commands = git
srpm: $(commands)
$(eval top := $(shell mktemp -d))
mkdir -p "$(top)/SOURCES"
git archive HEAD --output "$(top)/SOURCES/alacritty-$(version).tar" --prefix "alacritty-$(version)/"
rpmbuild -bs "$(spec)" --define "_topdir $(top)" --define "_srcrpmdir $(outdir)"
rm -rf "$(top)"
$(commands):
command -v $@ &> /dev/null || dnf -y install $@
.PHONY: srpm $(commands)