diff options
author | Götz Christ | 2021-10-08 08:31:36 -0500 |
---|---|---|
committer | Götz Christ | 2021-10-08 09:37:58 -0500 |
commit | e9c053d239f832f1175621ac4878b3867da82536 (patch) | |
tree | e85535d332791194b901470329b1e36044995b1b /Makefile | |
parent | 57c796f56abb9157a1afe2763351dba2e4f9907b (diff) | |
download | aur-e9c053d239f832f1175621ac4878b3867da82536.tar.gz |
Set version to depends on tepl-4 package
Which is a new AUR package
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..08dc72d466bd --- /dev/null +++ b/Makefile @@ -0,0 +1,56 @@ +.SHELL = /usr/bin/env bash + +NAME = "$(shell grep -m 1 pkgname .SRCINFO | cut -d '=' -f 2 | xargs)" +URL = "$(shell grep url .SRCINFO | cut -d '=' -f 2 | xargs)" +VERSION = "$(shell grep pkgver .SRCINFO | cut -d '=' -f 2 | xargs)" + +.PHONY: all +all: build git install + +.PHONY: clean +clean: + rm -r src pkg || true + +.PHONY: geninteg +geninteg: + sed -i '/.*sums=(/,$$d' PKGBUILD + makepkg --geninteg >> PKGBUILD + +.PHONY: srcinfo +srcinfo: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: makepkg +makepkg: + makepkg --syncdeps --force + +.PHONY: build +build: geninteg srcinfo makepkg + +.PHONY: git +git: git_add git_commit + +.PHONY: git_add +git_add: + git add PKGBUILD .SRCINFO Makefile + +.PHONY: git_commit +git_commit: GIT_STATUS = "$(shell git status --porcelain)" +git_commit: + [ -n ${GIT_STATUS} ] && git commit -m "Update to ${VERSION}" + +.PHONY: install +install: + makepkg --repackage --install --force + +.PHONY: open +open: + xdg-open $(URL) + +.PHONY: run +run: + env $(NAME) + +.PHONY: test +test: + env $(NAME) --version |