blob: 1d8ac5beaa65f7b52c74de09e8776339ab5a2f15 (
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/.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 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 $< > $*
|