Auto-update version on build

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-10-23 23:51:14 +02:00
parent e8470aef15
commit 3a43605198
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 4 additions and 1 deletions

View file

@ -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"
}

View file

@ -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