aports/testing/polymc/APKBUILD
2022-05-10 06:15:41 +00:00

65 lines
2.0 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=polymc
pkgver=1.2.2
pkgrel=0
_commit_libnbtplusplus="dc72a20b7efd304d12af2025223fad07b4b78464"
_commit_quazip="6117161af08e366c37499895b00ef62f93adc345"
pkgdesc="A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once"
url="https://polymc.org/"
# blocked on riscv64 by openjdk
# armhf and armv7 unsupported upstream
arch="all !riscv64 !armhf !armv7"
license="GPL-3.0-only AND Apache-2.0"
depends="
openjdk8-jre
"
case "$CARCH" in
x86) ;;
*) depends="$depends openjdk17-jre" ;;
esac
makedepends="
cmake
qt5-qtbase-dev
openjdk8
"
source="https://github.com/PolyMC/PolyMC/archive/$pkgver/polymc-$pkgver.tar.gz
https://github.com/MultiMC/libnbtplusplus/archive/$_commit_libnbtplusplus/libnbtplusplus-$_commit_libnbtplusplus.tar.gz
https://github.com/stachenov/quazip/archive/$_commit_quazip/quazip-$_commit_quazip.tar.gz
"
subpackages="$pkgname-doc"
builddir="$srcdir/PolyMC-$pkgver"
prepare() {
default_prepare
rmdir \
libraries/libnbtplusplus \
libraries/quazip
mv "$srcdir"/libnbtplusplus-$_commit_libnbtplusplus libraries/libnbtplusplus
mv "$srcdir"/quazip-$_commit_quazip libraries/quazip
}
build() {
JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk cmake -B build \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
cfa966971e5bb689ff4ecee0d0eefd9bc885001c3a17f964f6d4cdde4bb1b995faa89c2dc2ea0f24fb837fe6a03f42df3ec15723e364cd3cc69536ed45441d97 polymc-1.2.2.tar.gz
c629dd10b2dca8482017d8d627763fab679e2f0822c03b766e84f8cac04bbb1cf6d57c64c6271350c25f8b9a0bdc72076e64d4efcf5a80eeefec323528cbc04f libnbtplusplus-dc72a20b7efd304d12af2025223fad07b4b78464.tar.gz
943bfb6d2d2a30078c2cca3feb53e22340c9069638ec2a19a450389dbcf1dcaed63c6958b96206c136a577d7550630b56603dc5d3c2cf1b6d40e0961c054fcee quazip-6117161af08e366c37499895b00ef62f93adc345.tar.gz
"