blob: 7ab39dfd168a42a9e5ef2d4d20cd57653d3bf110 (
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
61
62
63
64
65
|
# Maintainer: Emma Tebibyte <emma@tebibyte.media>
# Contributor: Sefa Eyeoglu <contact@scrumplex.net>
# Contributor: 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=pollymc
pkgname=${_pkgname}-qt5-git
pkgver=1.1.1.r1135.g49849b75
pkgrel=1
pkgdesc="Fork of PolyMC that adds Ely.by support and allows you to use offline mode without an account."
arch=('i686' 'x86_64')
url="https://github.com/fn2006/PollyMC"
license=('GPL3')
depends=('java-runtime' 'libgl' 'qt5-base' 'qt5-svg' 'qt5-imageformats' 'zlib' 'hicolor-icon-theme')
provides=('pollymc' 'pollymc-qt5')
conflicts=('polymc')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'java-environment' 'scdoc')
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/fn2006/PollyMC"
"git+https://github.com/PolyMC/libnbtplusplus"
"git+https://github.com/stachenov/quazip")
sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "PollyMC"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "PollyMC"
git submodule init
git config submodule.libnbtplusplus.url "${srcdir}/libnbtplusplus"
git config submodule.quazip.url "${srcdir}/quazip"
git submodule update
}
build() {
cmake -DCMAKE_BUILD_TYPE= \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DLauncher_APP_BINARY_NAME="${_pkgname}" \
-DLauncher_QT_VERSION_MAJOR=5 \
-Bbuild -SPollyMC
cmake --build build
}
check() {
cd "build"
ctest .
}
package() {
cd "build"
DESTDIR="$pkgdir" cmake --install .
}
|