Initial commit
This commit is contained in:
commit
679e2f91b1
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
@ -0,0 +1,18 @@
|
||||
pkgbase = packwiz-installer
|
||||
pkgdesc = An installer for packwiz modpacks.
|
||||
pkgver = 0.5.10
|
||||
pkgrel = 1
|
||||
url = https://github.com/packwiz/packwiz-installer
|
||||
arch = any
|
||||
license = MIT
|
||||
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-bootstrap::git+https://github.com/packwiz/packwiz-installer-bootstrap.git#tag=v0.0.3
|
||||
source = packwiz-installer.sh
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
sha256sums = 924aff17bf4ad5fd745c5378d39ec883f685a9b0f4f754828cd99bc83c71df6d
|
||||
|
||||
pkgname = packwiz-installer
|
51
PKGBUILD
Normal file
51
PKGBUILD
Normal file
@ -0,0 +1,51 @@
|
||||
# Maintainer: NullBite <aur.archlinux at nullbite dot com>
|
||||
pkgname=packwiz-installer
|
||||
pkgver=0.5.10
|
||||
pkgrel=1
|
||||
pkgdesc="An installer for packwiz modpacks."
|
||||
arch=("any")
|
||||
url="https://github.com/packwiz/packwiz-installer"
|
||||
license=("MIT")
|
||||
depends=('java-environment')
|
||||
makedepends=('git'
|
||||
'java-environment-openjdk<=11')
|
||||
source=("$pkgname::git+https://github.com/packwiz/$pkgname.git#tag=v$pkgver"
|
||||
"$pkgname-bootstrap::git+https://github.com/packwiz/$pkgname-bootstrap.git#tag=v0.0.3"
|
||||
"packwiz-installer.sh"
|
||||
"packwiz-installer-bootstrap.sh")
|
||||
sha256sums=('SKIP'
|
||||
'SKIP'
|
||||
'924aff17bf4ad5fd745c5378d39ec883f685a9b0f4f754828cd99bc83c71df6d'
|
||||
'783990641e80a1b6603264d420ccf0ab6ad5a5c519e05a27162472c1746630cd')
|
||||
|
||||
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-11-openjdk/bin:/usr/lib/jvm/java-8-openjdk/bin${PATH:+:${PATH}}"
|
||||
export PATH
|
||||
cd "$srcdir/$pkgname"
|
||||
./gradlew buildNeeded
|
||||
|
||||
cd "$srcdir/$pkgname-bootstrap"
|
||||
./gradlew buildNeeded
|
||||
)
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname"
|
||||
install -Dm644 build/dist/packwiz-installer.jar "${pkgdir}/usr/share/java/packwiz/packwiz-installer.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"
|
||||
install -Dm755 packwiz-installer-bootstrap.sh "${pkgdir}/usr/bin/packwiz-installer-bootstrap"
|
||||
}
|
2
packwiz-installer-bootstrap.sh
Executable file
2
packwiz-installer-bootstrap.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
java -jar /usr/share/java/packwiz/packwiz-installer-bootstrap.jar "$@"
|
2
packwiz-installer.sh
Executable file
2
packwiz-installer.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec java -jar /usr/share/java/packwiz/packwiz-installer-bootstrap.jar --bootstrap-no-update --bootstrap-main-jar /usr/share/java/packwiz/packwiz-installer.jar "$@"
|
Loading…
x
Reference in New Issue
Block a user