Use commit hash instead of tag

This commit is contained in:
NullBite 2023-06-17 19:02:53 -04:00
parent 8a677a31b7
commit d4c7c7e27f
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,7 @@ pkgbase = packwiz-installer
makedepends = git
makedepends = java-environment-openjdk<=11
depends = java-environment
source = packwiz-installer::git+https://github.com/packwiz/packwiz-installer.git#tag=v0.5.10
source = packwiz-installer::git+https://github.com/packwiz/packwiz-installer.git#tag=7b6daaf7e552f44888d68dcd8235822dd1c2956e
source = packwiz-installer-bootstrap::git+https://github.com/packwiz/packwiz-installer-bootstrap.git#tag=v0.0.3
source = packwiz-installer.sh
source = packwiz-installer-bootstrap.sh

View File

@ -9,7 +9,8 @@ license=("MIT")
depends=('java-environment')
makedepends=('git'
'java-environment-openjdk<=11')
source=("$pkgname::git+https://github.com/packwiz/$pkgname.git#tag=v$pkgver"
_tag=7b6daaf7e552f44888d68dcd8235822dd1c2956e # git rev-parse v${pkgver}
source=("$pkgname::git+https://github.com/packwiz/$pkgname.git#tag=$_tag"
"$pkgname-bootstrap::git+https://github.com/packwiz/$pkgname-bootstrap.git#tag=v0.0.3"
"packwiz-installer.sh"
"packwiz-installer-bootstrap.sh")
@ -18,6 +19,11 @@ sha256sums=('SKIP'
'924aff17bf4ad5fd745c5378d39ec883f685a9b0f4f754828cd99bc83c71df6d'
'783990641e80a1b6603264d420ccf0ab6ad5a5c519e05a27162472c1746630cd')
pkgver() {
cd ${pkgname}
git describe --tags | sed 's/^v//'
}
prepare() {
cd "$srcdir/$pkgname-bootstrap"
chmod +x gradlew