Compare commits

..

No commits in common. "5a0f5a44a95651835b13845deb6c863bce020013" and "8ebc8c0342b0dc9dcee0ebee5cf400414c3a8d5f" have entirely different histories.

2 changed files with 48 additions and 14 deletions

View File

@ -1,16 +1,18 @@
pkgbase = packwiz-installer
pkgdesc = An installer for packwiz modpacks.
pkgver = 0.5.13
pkgver = 0.5.12
pkgrel = 1
url = https://github.com/packwiz/packwiz-installer
arch = any
license = MIT
makedepends = git
makedepends = java-environment<=11
depends = java-runtime
source = packwiz-installer.jar::https://github.com/packwiz/packwiz-installer/releases/download/v0.5.13/packwiz-installer.jar
source = packwiz-installer-bootstrap.jar::https://github.com/packwiz/packwiz-installer-bootstrap/releases/download/v0.0.3/packwiz-installer-bootstrap.jar
source = packwiz-installer::git+https://github.com/packwiz/packwiz-installer.git#tag=b2421cfea768328aa4668c0f1ccebe85e216d81d
source = packwiz-installer-bootstrap::git+https://github.com/packwiz/packwiz-installer-bootstrap.git#tag=fc4cd603d04d08c09fcd83cadb9ceedf776831e7
source = packwiz-installer.sh
sha256sums = 3cc3ebd57f1ec54a8ceaccc76e193201f8c957c563c9461253d112c5b087d744
sha256sums = a8fbb24dc604278e97f4688e82d3d91a318b98efc08d5dbfcbcbcab6443d116c
sha256sums = SKIP
sha256sums = SKIP
sha256sums = 924aff17bf4ad5fd745c5378d39ec883f685a9b0f4f754828cd99bc83c71df6d
pkgname = packwiz-installer

View File

@ -1,27 +1,59 @@
# Maintainer: NullBite <aur.archlinux@nullbite.com>
pkgname=packwiz-installer
pkgver=0.5.13
pkgver=0.5.12
pkgrel=1
pkgdesc="An installer for packwiz modpacks."
arch=("any")
url="https://github.com/packwiz/packwiz-installer"
license=("MIT")
depends=('java-runtime')
_version_bootstrap=0.0.3
source=("packwiz-installer.jar::$url/releases/download/v$pkgver/packwiz-installer.jar"
"packwiz-installer-bootstrap.jar::$url-bootstrap/releases/download/v$_version_bootstrap/packwiz-installer-bootstrap.jar"
makedepends=('git'
'java-environment<=11')
_tag=b2421cfea768328aa4668c0f1ccebe85e216d81d # git rev-parse v${pkgver}
_tag_bootstrap=fc4cd603d04d08c09fcd83cadb9ceedf776831e7
source=("$pkgname::git+https://github.com/packwiz/$pkgname.git#tag=$_tag"
"$pkgname-bootstrap::git+https://github.com/packwiz/$pkgname-bootstrap.git#tag=$_tag_bootstrap"
"packwiz-installer.sh")
sha256sums=('3cc3ebd57f1ec54a8ceaccc76e193201f8c957c563c9461253d112c5b087d744'
'a8fbb24dc604278e97f4688e82d3d91a318b98efc08d5dbfcbcbcab6443d116c'
sha256sums=('SKIP'
'SKIP'
'924aff17bf4ad5fd745c5378d39ec883f685a9b0f4f754828cd99bc83c71df6d')
pkgver() {
cd ${pkgname}
git describe --tags | sed 's/^v//'
}
prepare() {
cd "$srcdir/$pkgname-bootstrap"
chmod +x gradlew
}
build() {
# subshell for isolated environment, as to not alter PATH for the rest
# of the build
(
# attempt to locate compatible JDK version for building, then
# fall back to default JDK
PATH="/usr/lib/jvm/java-8-openjdk/bin${PATH:+:${PATH}}"
PATH="/usr/lib/jvm/java-11-openjdk/bin${PATH:+:${PATH}}"
export PATH
cd "$srcdir/$pkgname"
./gradlew buildNeeded
cd "$srcdir/$pkgname-bootstrap"
./gradlew buildNeeded
)
}
package() {
cd "$srcdir"
install -Dm644 packwiz-installer.jar \
cd "$srcdir/$pkgname"
install -Dm644 build/dist/packwiz-installer.jar \
"${pkgdir}/usr/share/java/packwiz/packwiz-installer.jar"
install -Dm644 packwiz-installer-bootstrap.jar \
cd "$srcdir/$pkgname-bootstrap"
install -Dm644 build/libs/packwiz-installer-bootstrap-all.jar \
"${pkgdir}/usr/share/java/packwiz/packwiz-installer-bootstrap.jar"
cd "$srcdir"
install -Dm755 packwiz-installer.sh "${pkgdir}/usr/bin/packwiz-installer"
}