makedeb
Minecraft launcher with ability to manage multiple instances.
Click here to go back to the commit logs for polymc.
Hash: a181404c50658cf8d5dcf60144996b7a132d1b96
Message: fix
diff --git a/.SRCINFO b/.SRCINFO
index 6d9d828..e085a32 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ generated-by = makedeb-makepkg
pkgbase = polymc
pkgdesc = Minecraft launcher with ability to manage multiple instances.
pkgver = 1.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/PolyMC/PolyMC
arch = i686
arch = x86_64
@@ -25,13 +25,8 @@ pkgbase = polymc
depends = libqt5gui5
optdepends = java-runtime=8: support for Minecraft versions < 1.17
optdepends = java-runtime=17: support for Minecraft versions >= 1.17
- provides = polymc
conflicts = polymc
- source = git+https://github.com/PolyMC/PolyMC#tag=1.2.0
- source = git+https://github.com/MultiMC/libnbtplusplus
- source = git+https://github.com/stachenov/quazip
- sha256sums = SKIP
- sha256sums = SKIP
- sha256sums = SKIP
+ source = https://github.com/PolyMC/PolyMC/releases/download/1.2.0/PolyMC-1.2.0.tar.gz
+ sha256sums = f2bc1b0b18a166445e3ca03d3e0f606043c57b1811317079603bef4e44994484
pkgname = polymc
diff --git a/PKGBUILD b/PKGBUILD
index aa71b94..b792cf5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,52 +2,40 @@
pkgname=polymc
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Minecraft launcher with ability to manage multiple instances."
arch=('i686' 'x86_64')
url="https://github.com/PolyMC/PolyMC"
license=('GPL3')
depends=('libqt5xml5' 'libqt5core5a' 'libqt5network5' 'libqt5gui5')
-provides=('polymc')
conflicts=('polymc')
makedepends=('cmake' 'git' 'openjdk-17-jdk' 'zlib1g-dev' 'libgl1-mesa-dev' 'qtbase5-dev' 'qtchooser' 'qt5-qmake' 'qtbase5-dev-tools' 'gcc' 'g++')
optdepends=('java-runtime=8: support for Minecraft versions < 1.17'
'java-runtime=17: support for Minecraft versions >= 1.17')
-source=("git+https://github.com/PolyMC/PolyMC#tag=${pkgver}"
- "git+https://github.com/MultiMC/libnbtplusplus"
- "git+https://github.com/stachenov/quazip")
+source=("https://github.com/PolyMC/PolyMC/releases/download/$pkgver/PolyMC-$pkgver.tar.gz")
-sha256sums=('SKIP'
- 'SKIP'
- 'SKIP')
-
-prepare() {
- cd "${srcdir}/PolyMC"
- git submodule init
- git config submodule.libnbtplusplus.url "${srcdir}/libnbtplusplus"
- git config submodule.quazip.url "${srcdir}/quazip"
- git submodule update
-}
+sha256sums=("f2bc1b0b18a166445e3ca03d3e0f606043c57b1811317079603bef4e44994484")
build() {
- cd "${srcdir}/PolyMC"
+ cd "${srcdir}/PolyMC-$pkgver"
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DLauncher_BUILD_PLATFORM="debian" \
-DLauncher_APP_BINARY_NAME="${pkgname}" \
+ -DLauncher_LTO=ON \
..
cmake --build .
}
check() {
- cd "${srcdir}/PolyMC/build"
+ cd "${srcdir}/PolyMC-$pkgver/build"
ctest .
}
package() {
- cd "${srcdir}/PolyMC/build"
+ cd "${srcdir}/PolyMC-$pkgver/build"
DESTDIR="$pkgdir" cmake --install .
}