From fa26243b537074e497ac28e1534d0bb9edf824c5 Mon Sep 17 00:00:00 2001 From: Khaliq Date: Sun, 8 Aug 2021 04:09:29 +0800 Subject: [PATCH] fix: version info for aur build --- .github/aur/pingme-bin/.SRCINFO.template | 6 +++--- .github/aur/pingme/PKGBUILD.template | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/aur/pingme-bin/.SRCINFO.template b/.github/aur/pingme-bin/.SRCINFO.template index d6d5116..c2cb563 100644 --- a/.github/aur/pingme-bin/.SRCINFO.template +++ b/.github/aur/pingme-bin/.SRCINFO.template @@ -11,13 +11,13 @@ pkgbase = pingme-bin provides = ${_PKGNAME} conflicts = ${_PKGNAME} - source_x86_64 = ${_PKGNAME}_${PKGVER}_linux_x86_64.tar.gz::https://github.com/kha7iq/${_PKGNAME}/releases/download/v${PKGVER}/${_PKGNAME}_linux_x86_64.tar.gz") + source_x86_64 = ${_PKGNAME}_${pkgver}_linux_x86_64.tar.gz::https://github.com/kha7iq/${_PKGNAME}/releases/download/v${pkgver}/${_PKGNAME}_linux_x86_64.tar.gz") sha256sums_x86_64 = (${SHA256SUM_X86}) - source_i686 = ${_PKGNAME}_${PKGVER}_linux_i386.tar.gz::https://github.com/kha7iq/${_PKGNAME}/releases/download/v${PKGVER}/${_PKGNAME}_linux_i386.tar.gz") + source_i686 = ${_PKGNAME}_${pkgver}_linux_i386.tar.gz::https://github.com/kha7iq/${_PKGNAME}/releases/download/v${pkgver}/${_PKGNAME}_linux_i386.tar.gz") sha256sums_i686 = (${SHA256SUM_i686}) - source_aarch64 = ${_PKGNAME}_${PKGVER}_linux_arm64.tar.gz::https://github.com/kha7iq/${_PKGNAME}/releases/download/v${PKGVER}/${_PKGNAME}_linux_arm64.tar.gz") + source_aarch64 = ${_PKGNAME}_${pkgver}_linux_arm64.tar.gz::https://github.com/kha7iq/${_PKGNAME}/releases/download/v${pkgver}/${_PKGNAME}_linux_arm64.tar.gz") sha256sums_aarch64 = (${SHA256SUM_AARCH64}) pkgname = pingme-bin diff --git a/.github/aur/pingme/PKGBUILD.template b/.github/aur/pingme/PKGBUILD.template index 972379d..934a00f 100644 --- a/.github/aur/pingme/PKGBUILD.template +++ b/.github/aur/pingme/PKGBUILD.template @@ -18,7 +18,7 @@ sha256sums=( build() { cd "${pkgname}-${pkgver}" export CGO_LDFLAGS="$LDFLAGS" - go build -ldflags "-linkmode=external -s -w -X main.version=${pkgver}" -o ${pkgname} . + go build -ldflags "-linkmode=external -s -w -X main.Version=${pkgver}" -o ${pkgname} . } package() {