diff --git a/PKGBUILD b/PKGBUILD index 5c51d1d..ed1d579 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -22,3 +22,7 @@ package() { install -Dm755 "${srcdir}/go/bin/$(basename ${binary})" "${pkgdir}/usr/bin/$(basename ${binary})" done } + +pkgver() { + date +"%Y.%m.%d" +} diff --git a/update_version.sh b/update_version.sh index da5af68..ad23cb5 100644 --- a/update_version.sh +++ b/update_version.sh @@ -15,7 +15,6 @@ diff tools.txt tools.txt.new && { mv tools.txt.new tools.txt updpkgsums -sed -i "s/pkgver=.*/pkgver=$(date +%Y.%m.%d)/" PKGBUILD makepkg --printsrcinfo >.SRCINFO git add tools.txt .SRCINFO PKGBUILD