From 03e380461f97bb0a0fc7adf36adb31ec583e8349 Mon Sep 17 00:00:00 2001 From: Khaliq Date: Thu, 5 Aug 2021 14:26:24 +0800 Subject: [PATCH] fix: release to aur --- .github/aur/pingme/PKGBUILD.template | 2 +- .github/aur/pingme/publish.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/aur/pingme/PKGBUILD.template b/.github/aur/pingme/PKGBUILD.template index 4e9f5cd..972379d 100644 --- a/.github/aur/pingme/PKGBUILD.template +++ b/.github/aur/pingme/PKGBUILD.template @@ -9,7 +9,7 @@ arch=("i686" "x86_64" "aarch64") license=("MIT") makedepends=('go>=1.16') source=( - "${pkgname}-${pkgver}.tar.gz::https://github.com/kha7iq/pingme/archive/v${pkgver}.tar.gz" + "${pkgname}-${pkgver}.tar.gz::https://github.com/kha7iq/${pkgname}/archive/v${pkgver}.tar.gz" ) sha256sums=( ${SHA256SUM} diff --git a/.github/aur/pingme/publish.sh b/.github/aur/pingme/publish.sh index 8e83207..3d74c28 100755 --- a/.github/aur/pingme/publish.sh +++ b/.github/aur/pingme/publish.sh @@ -41,7 +41,7 @@ else export PKGREL=1 fi -export SHA256SUM=$(curl -sL https://github.com/kha7iq/subvars/archive/v$PKGVER.tar.gz | sha256sum | awk '{ print $1 }') +export SHA256SUM=$(curl -sL https://github.com/kha7iq/${PKGNAME}/archive/v$PKGVER.tar.gz | sha256sum | awk '{ print $1 }') envsubst '$PKGVER $PKGREL $SHA256SUM' < .SRCINFO.template > $GITDIR/.SRCINFO envsubst '$PKGVER $PKGREL $SHA256SUM' < PKGBUILD.template > $GITDIR/PKGBUILD