2021-01-29 03:37:52 +00:00
|
|
|
# Maintainer: Lukas Fink <lukas >dot< fink1 >at< gmail >dot< com>
|
|
|
|
# Contributor: xiretza <xiretza+aur@gmail.com>
|
2019-02-24 20:22:32 +00:00
|
|
|
# Contributor: vorpalblade77@gmail.com
|
2015-06-12 11:07:58 +00:00
|
|
|
# Contributor: b.klettbach@gmail.com
|
2019-10-03 15:25:47 +00:00
|
|
|
# Contributor: Patrik Plihal <patrik.plihal at gmail dot com>
|
2015-06-08 17:15:07 +00:00
|
|
|
|
2021-01-29 03:37:52 +00:00
|
|
|
pkgname=multimc5-offline
|
|
|
|
pkgver=0.6.12_custom_2
|
2021-06-10 15:03:23 +00:00
|
|
|
pkgrel=2
|
2019-02-16 13:44:54 +00:00
|
|
|
__pkgver_libnbtplusplus=multimc-0.6.1
|
|
|
|
__pkgver_quazip=multimc-3
|
2021-01-29 04:03:11 +00:00
|
|
|
pkgdesc="Adds offline mode support to MultiMC"
|
2015-06-08 17:15:07 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2021-01-29 03:37:52 +00:00
|
|
|
url="https://github.com/Ponywka/MultiMC5-with-offline"
|
2015-06-08 17:15:07 +00:00
|
|
|
license=('Apache')
|
2019-10-03 15:25:47 +00:00
|
|
|
depends=('zlib' 'libgl' 'qt5-base' 'qt5-x11extras' 'java-runtime' 'qt5-svg' 'xorg-xrandr')
|
2018-02-11 22:37:35 +00:00
|
|
|
provides=('multimc')
|
2018-06-13 13:37:24 +00:00
|
|
|
conflicts=('multimc')
|
2019-10-03 15:25:47 +00:00
|
|
|
makedepends=('cmake' 'java-environment')
|
2020-10-19 08:44:16 +00:00
|
|
|
optdepends=('mcedit: Allows editing of minecraft worlds'
|
|
|
|
'visualvm: Profiling support')
|
2018-06-13 13:37:24 +00:00
|
|
|
|
2021-01-29 03:37:52 +00:00
|
|
|
source=("https://github.com/Ponywka/MultiMC5-with-offline/archive/${pkgver//_/-}.tar.gz"
|
2018-06-13 13:37:24 +00:00
|
|
|
"https://github.com/MultiMC/libnbtplusplus/archive/${__pkgver_libnbtplusplus}.tar.gz"
|
|
|
|
"https://github.com/MultiMC/quazip/archive/${__pkgver_quazip}.tar.gz"
|
|
|
|
"quazip-fix-build-with-qt-511.patch"
|
2019-10-03 15:25:47 +00:00
|
|
|
"modern-java.patch"
|
2021-06-10 15:03:23 +00:00
|
|
|
"add-limits-header.patch::https://github.com/MultiMC/MultiMC5/commit/c2fd714f8d77db3223c5cb1a2d7f902d3e3e73fd.patch"
|
|
|
|
"konamicode-fix-type-mismatch.patch::https://github.com/MultiMC/MultiMC5/commit/3a1abb555b844c79a80615727b11019403767ce7.patch"
|
2015-06-08 17:15:07 +00:00
|
|
|
)
|
2021-01-29 03:37:52 +00:00
|
|
|
sha512sums=('e346acf4a1b24a7a646e5b1bae08a754f50db2301c45412e42d87f70e1887e940e0ebadce0f490f1d4d40bd0b165ea734d5be4b8016416b56d83fd686908d9cd'
|
2019-02-16 13:44:54 +00:00
|
|
|
'81a1640a069d88df7ba0abf72089aecbe1e9d791c88acaaa7e70c8f0bcd0512cf8698178342657e363524ce8488dd072368a0aa8cc091a24912d6f8b6b0f4f2d'
|
|
|
|
'2e9074203c67bc7ad98621c551047e5367f06e54cacfecc755a5bf2c9f99266eab42ad972f86ae28ed7e1507f6d27d8d2680a87ce9fd5b1e93a18bcb627ec3f0'
|
2019-10-03 15:25:47 +00:00
|
|
|
'ca7a350bdeecf65dbca7de8d6912c935c6ba603edcddcd4ffe71d8997e50e4046335dde6d1d7c629d35025073d18be4d112a960d43a8801de979687bc26e46d4'
|
2021-06-10 15:03:23 +00:00
|
|
|
'ede87db7e1ce67184409123720b48f65d35884bac5dfff34cc099c5d7520fd9173be00997df82ad29da4640928134a7199ffdd1cbaa83a72101dbed72736508b'
|
|
|
|
'e58cc72194b69999f96f08585a41470c0d1c074bc03992a9b41ac3d1bf3f676e526c2b42191e4d0c511281467445b13c1da82a26aeed271e05eb79efad30459e'
|
|
|
|
'44354df2fafcc9c08901a94d3d3eb8fe0a818d493b438799bdb75339c3fd9db91ccf9be2073271c1381496789819d74daf9353b28ab7e6a381db0d4f5ee41939'
|
|
|
|
)
|
2016-01-22 14:58:32 +00:00
|
|
|
prepare() {
|
2021-01-29 03:37:52 +00:00
|
|
|
cd "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}"
|
2018-06-13 13:37:24 +00:00
|
|
|
|
2019-10-03 15:25:47 +00:00
|
|
|
patch -p1 < "${srcdir}/modern-java.patch"
|
2021-06-10 15:03:23 +00:00
|
|
|
patch -p1 < "${srcdir}/add-limits-header.patch"
|
|
|
|
patch -p1 < "${srcdir}/konamicode-fix-type-mismatch.patch"
|
2019-10-03 15:25:47 +00:00
|
|
|
|
2018-06-13 13:37:24 +00:00
|
|
|
rmdir "libraries/libnbtplusplus"
|
|
|
|
rmdir "libraries/quazip"
|
2017-01-15 12:58:45 +00:00
|
|
|
cp --recursive "${srcdir}/libnbtplusplus-${__pkgver_libnbtplusplus}/" \
|
2018-06-13 13:37:24 +00:00
|
|
|
"libraries/libnbtplusplus"
|
2018-01-01 12:16:18 +00:00
|
|
|
cp --recursive "${srcdir}/quazip-${__pkgver_quazip}/" \
|
2018-06-13 13:37:24 +00:00
|
|
|
"libraries/quazip"
|
|
|
|
|
|
|
|
cd "libraries/quazip"
|
|
|
|
# https://github.com/MultiMC/quazip/pull/1
|
|
|
|
patch -p1 < "${srcdir}/quazip-fix-build-with-qt-511.patch"
|
2018-01-01 12:16:18 +00:00
|
|
|
}
|
2018-06-13 13:37:24 +00:00
|
|
|
|
2018-01-01 12:16:18 +00:00
|
|
|
build() {
|
2021-01-29 03:37:52 +00:00
|
|
|
cd "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}"
|
2015-06-08 17:15:07 +00:00
|
|
|
mkdir -p build
|
2018-01-01 12:16:18 +00:00
|
|
|
|
2015-06-08 17:15:07 +00:00
|
|
|
cd build
|
2018-01-01 12:16:18 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
2019-10-03 15:25:47 +00:00
|
|
|
-DMultiMC_UPDATER=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
|
|
-DMultiMC_LAYOUT=lin-system \
|
|
|
|
..
|
2015-06-08 17:15:07 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2018-06-13 13:37:24 +00:00
|
|
|
check() {
|
2021-01-29 03:37:52 +00:00
|
|
|
cd "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}/build"
|
2018-06-13 13:37:24 +00:00
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
2015-06-08 17:15:07 +00:00
|
|
|
package() {
|
2021-01-29 03:37:52 +00:00
|
|
|
cd "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}/build"
|
2018-02-01 13:44:53 +00:00
|
|
|
make install DESTDIR="${pkgdir}"
|
2021-01-29 03:37:52 +00:00
|
|
|
install -D "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}/application/resources/multimc/scalable/multimc.svg" "${pkgdir}/usr/share/pixmaps/multimc.svg"
|
|
|
|
install -D "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}/application/package/linux/multimc.desktop" "${pkgdir}/usr/share/applications/multimc.desktop"
|
|
|
|
install -D "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}/build/libMultiMC_quazip.so" "${pkgdir}/usr/lib/libMultiMC_quazip.so"
|
|
|
|
install -D "${srcdir}/MultiMC5-with-offline-${pkgver//_/-}/build/libMultiMC_nbt++.so" "${pkgdir}/usr/lib/libMultiMC_nbt++.so"
|
2015-06-08 17:15:07 +00:00
|
|
|
}
|
2021-01-29 03:37:52 +00:00
|
|
|
|