blob: 32cb1ef36b8a69e92c2d5fdb297f972cfda9a68c (
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
|
PKG:=$(lastword $(subst /, ,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
.PHONY: upload clean
all: PKGBUILD src
clean:
rm -rf .SRCINFO \
${PKG}.git \
PKGBUILD \
src
upload: .${PKG}.git .SRCINFO
rm -f .git
ln -s $</.git .
git commit -am 'bump'
git push origin master
rm .git
.%.git:
git clone ssh://aur@aur.archlinux.org/$* $@
src:
makepkg -do
make -W PKGBUILD.in
.SRCINFO: PKGBUILD
mksrcinfo
%: %.in
m4 $< > $*
|