blob: be9262119430db72a7b11b2c6a3f5f48ea6526f5 (
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
|
VERSION ?= 0.17.1
all: clean set-version checksums prepare
pkg:
makepkg -s
fetch-sums:
makepkg -g
prepare:
makepkg --printsrcinfo > .SRCINFO
get-checksum:
makepkg -g
checksums: get-checksum
sed -i 's/sha256sums=\(.*\)/sha256sums=\("$(shell sha256sum checksums.txt | cut -d ' ' -f1)"\)/' PKGBUILD
set-version:
sed -i 's/^VERSION ?= \(.*\)/VERSION ?= $(VERSION:v%=%)/' Makefile
sed -i 's/pkgver=\(.*\)/pkgver="$(VERSION:v%=%)"/' PKGBUILD
publish:
git add .
git commit -m "Update to $(VERSION:v%=%)"
git push origin master
clean:
rm -rf pkg/ src/ checksums* *tar*
|