blob: d58fbfcca3aa1762de958d728ff03170fdff47bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Maintainer: Lenny McLennington <lennymclennington@protonmail.com>
# Contributor: Elijah Gregg <lovetocode999 at tilde dot team>
# Contributor: Miko <mikoxyzzz@gmail.com>
# Contributor: Cheru Berhanu <aur attt cheru doot dev>
_pkgname=polymc
pkgname=${_pkgname}-qt5-git
pkgver=5.0.r25.g2358e6fa
pkgrel=3
pkgdesc="Minecraft launcher with the ability to manage multiple instances."
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/PolyMC/PolyMC"
license=('GPL3')
depends=('java-runtime' 'libgl' 'qt5-base' 'qt5-svg' 'qt5-imageformats' 'zlib' 'hicolor-icon-theme' 'quazip-qt5' 'qt5-charts')
provides=('polymc' 'polymc-qt5')
conflicts=('polymc' 'polymc-qt5')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'java-environment' 'scdoc' 'tomlplusplus' 'ghc-filesystem')
optdepends=('glfw: to use system GLFW libraries'
'openal: to use system OpenAL libraries'
'visualvm: Profiling support'
'xorg-xrandr: for older minecraft versions'
)
source=("git+https://github.com/PolyMC/PolyMC"
"git+https://github.com/PolyMC/libnbtplusplus")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "PolyMC"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "PolyMC"
git submodule init
git config submodule.depends/libnbtplusplus.url "${srcdir}/libnbtplusplus"
git config submodule.libraries/quazip.active false
git config submodule.libraries/tomlplusplus.active false
git config submodule.libraries/filesystem.active false
git -c protocol.file.allow=always submodule update
}
build() {
cmake -DCMAKE_BUILD_TYPE= \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DLauncher_APP_BINARY_NAME="${_pkgname}" \
-DLauncher_QT_VERSION_MAJOR=5 \
-DBUILD_TESTING=OFF \
-Bbuild -SPolyMC
cmake --build build
}
package() {
cd "build"
DESTDIR="$pkgdir" cmake --install .
}
|