Auto-update version on build
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e8470aef15
commit
3a43605198
2 changed files with 4 additions and 1 deletions
4
PKGBUILD
4
PKGBUILD
|
@ -22,3 +22,7 @@ package() {
|
||||||
install -Dm755 "${srcdir}/go/bin/$(basename ${binary})" "${pkgdir}/usr/bin/$(basename ${binary})"
|
install -Dm755 "${srcdir}/go/bin/$(basename ${binary})" "${pkgdir}/usr/bin/$(basename ${binary})"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
date +"%Y.%m.%d"
|
||||||
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ diff tools.txt tools.txt.new && {
|
||||||
mv tools.txt.new tools.txt
|
mv tools.txt.new tools.txt
|
||||||
updpkgsums
|
updpkgsums
|
||||||
|
|
||||||
sed -i "s/pkgver=.*/pkgver=$(date +%Y.%m.%d)/" PKGBUILD
|
|
||||||
makepkg --printsrcinfo >.SRCINFO
|
makepkg --printsrcinfo >.SRCINFO
|
||||||
|
|
||||||
git add tools.txt .SRCINFO PKGBUILD
|
git add tools.txt .SRCINFO PKGBUILD
|
||||||
|
|
Loading…
Reference in a new issue