blob: 8653fbe9f3d549b80b55ae8e6cba28ba39cfbe6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
PKG:=$(lastword $(subst /, ,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
.PHONY: upload clean
all: PKGBUILD src
clean:
rm -rf .SRCINFO \
${PKG}.git \
PKGBUILD \
src
upload: export GIT_DIR=.${PKG}.git
upload: export GIT_WORK_TREE=$(dir $(realpath $(lastword $(MAKEFILE_LIST))))
upload: .${PKG}.git .SRCINFO
git commit -am 'bump'
git push origin master
.%.git:
git clone --bare ssh://aur@aur.archlinux.org/$* $@
src: PKGBUILD
makepkg -do
.SRCINFO: PKGBUILD
mksrcinfo
src/pvr.hts/pvr.hts/addon.xml.in: .${PKG}.git
PKGBUILD: src/pvr.hts/pvr.hts/addon.xml.in
%: %.in
m4 $< > $*
|