summaryrefslogtreecommitdiff
path: root/multimc/Pkgfile
blob: b4f0b45bd4d67abb88519faea9ce7d6a589f1d20 (plain)
    1 # Description: Minecraft launcher with ability to manage multiple instances.
    2 # URL: https://multimc.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: openjdk11-jdk qt5
    5 
    6 name=multimc
    7 version=0.6.13
    8 release=1
    9 source=(https://github.com/MultiMC/MultiMC5/archive/$version/MultiMC5-$version.tar.gz
   10 	https://github.com/MultiMC/quazip/archive/multimc-3.tar.gz
   11 	https://github.com/MultiMC/libnbtplusplus/archive/multimc-0.6.1.tar.gz
   12 	quazip-fix-build-with-qt-511.patch
   13 	modern-java.patch)
   14  
   15 build() {
   16 	cd MultiMC5-$version
   17 
   18 	rmdir libraries/libnbtplusplus
   19 	rmdir libraries/quazip
   20 	ln -sfT $SRC/libnbtplusplus-multimc-0.6.1/ libraries/libnbtplusplus
   21 	ln -sfT $SRC/quazip-multimc-3/ libraries/quazip
   22 
   23 	# https://github.com/MultiMC/quazip/pull/1
   24 	patch -d libraries/quazip -p1 -i $SRC/quazip-fix-build-with-qt-511.patch
   25 
   26 	patch -p1 -i $SRC/modern-java.patch
   27 
   28 	export JAVA_HOME="/usr/lib/java/openjdk11-jdk/"
   29 
   30 	mkdir -p build
   31 	cd build
   32 
   33 	cmake .. \
   34 		-DCMAKE_BUILD_TYPE=Release \
   35 		-DMultiMC_UPDATER=OFF \
   36 		-DCMAKE_INSTALL_PREFIX="/usr" \
   37 		-DMultiMC_LAYOUT=lin-system \
   38 		-DMultiMC_NOTIFICATION_URL:STRING=http://files.multimc.org/notifications.json
   39 
   40 	make
   41 	make DESTDIR=$PKG install
   42 
   43 	install -D $SRC/MultiMC5-$version/launcher/resources/multimc/scalable/multimc.svg \
   44 		$PKG/usr/share/pixmaps/multimc.svg
   45 
   46 	install -D $SRC/MultiMC5-$version/launcher/package/linux/multimc.desktop \
   47 		 $PKG/usr/share/applications/multimc.desktop
   48 
   49 	install -D $SRC/MultiMC5-$version/build/libMultiMC_quazip.so \
   50 		$PKG/usr/lib/libMultiMC_quazip.so
   51 
   52 	install -D $SRC/MultiMC5-$version/build/libMultiMC_nbt++.so \
   53 		$PKG/usr/lib/libMultiMC_nbt++.so
   54 }

Generated by cgit