Reset pkgrel on update

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-27 11:21:20 +01:00
parent a6256e208f
commit 2c85a49486
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -11,7 +11,10 @@ VER=$(curl -sL "https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/ot
grep "${PKG}" | cut -d ' ' -f 2) grep "${PKG}" | cut -d ' ' -f 2)
# Insert latest version into PKGBUILD and update hashes # Insert latest version into PKGBUILD and update hashes
sed -i "s/^pkgver=.*/pkgver=${VER}/" PKGBUILD sed -i \
-e "s/^pkgver=.*/pkgver=${VER}/" \
-e 's/pkgrel=.*/pkgrel=1/' \
PKGBUILD
updpkgsums updpkgsums
# Check whether this changed anything # Check whether this changed anything