summarylogtreecommitdiffstats
path: root/Makefile
blob: b67813f73822a5cda93fa774f79516e78b64b015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PKG_NAME := ttf-lxgw-neo-xihei-screen-full
AUR_GIT_URL := ssh://aur@aur.archlinux.org/${PKG_NAME}.git

.PHONY: all run update aur
all:
	@echo commands:
	@echo "   " aur    : Connect to AUR. Afterward you can run \'git push -u origin master\' to actually create a AUR repo.
	@echo "   " update : update checksum and SRCINFO
	@echo "   " run    : local test

aur:
	git remote add origin ${AUR_GIT_URL}
	git fetch

update: SHELL:=/bin/bash
update:
	@([[ $$(git ls-files) ]] && git clean -xdf ) || ( echo Please make your first stage or commit to ensure which files will not be deleted as cache files first && exit 1 )
	env all_proxy=http://127.0.0.1:7890 updpkgsums # update package integrity checksum
	makepkg --printsrcinfo > .SRCINFO

run:
	env all_proxy=http://127.0.0.1:7890 makepkg -si --clean