diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2019-10-05 19:26:24 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2019-10-05 19:27:47 +1000 |
commit | 6687237e49b395d0b8f31f68c7c7c7d43b02fa31 (patch) | |
tree | 83cb0cc0ce6d9dd1276115ff55e1663e45e80675 /minecraft-launcher | |
parent | e37aa2a4eeea25fd7a5029cf5f8f861093574616 (diff) | |
download | contrib-6687237e49b395d0b8f31f68c7c7c7d43b02fa31.tar.gz contrib-6687237e49b395d0b8f31f68c7c7c7d43b02fa31.tar.xz |
[notify] minecraft-launcher: -> 2.1.5965 renamed from minecraft, check dependencies
Diffstat (limited to 'minecraft-launcher')
-rw-r--r-- | minecraft-launcher/.footprint | 79 | ||||
-rw-r--r-- | minecraft-launcher/.signature | 7 | ||||
-rw-r--r-- | minecraft-launcher/Pkgfile | 28 | ||||
-rw-r--r-- | minecraft-launcher/README | 11 | ||||
-rw-r--r-- | minecraft-launcher/minecraft | 30 | ||||
-rw-r--r-- | minecraft-launcher/minecraft-launcher.desktop | 10 |
6 files changed, 165 insertions, 0 deletions
diff --git a/minecraft-launcher/.footprint b/minecraft-launcher/.footprint new file mode 100644 index 000000000..ef61724f3 --- /dev/null +++ b/minecraft-launcher/.footprint @@ -0,0 +1,79 @@ +drwxr-xr-x root/root opt/ +drwxr-xr-x root/root opt/minecraft-launcher/ +-rw-r--r-- root/root opt/minecraft-launcher/cef.pak +-rw-r--r-- root/root opt/minecraft-launcher/cef_100_percent.pak +-rw-r--r-- root/root opt/minecraft-launcher/cef_200_percent.pak +-rw-r--r-- root/root opt/minecraft-launcher/cef_extensions.pak +-rwxr-xr-x root/root opt/minecraft-launcher/chrome-sandbox +-rw-r--r-- root/root opt/minecraft-launcher/icudtl.dat +-rwxr-xr-x root/root opt/minecraft-launcher/libcef.so +-rw-r--r-- root/root opt/minecraft-launcher/liblauncher.so +drwxr-xr-x root/root opt/minecraft-launcher/locales/ +-rw-r--r-- root/root opt/minecraft-launcher/locales/am.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ar.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/bg.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/bn.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ca.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/cs.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/da.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/de.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/el.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/en-GB.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/en-US.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/es-419.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/es.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/et.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/fa.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/fi.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/fil.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/fr.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/gu.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/he.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/hi.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/hr.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/hu.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/id.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/it.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ja.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/kn.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ko.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/lt.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/lv.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ml.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/mr.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ms.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/nb.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/nl.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/pl.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/pt-BR.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/pt-PT.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ro.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ru.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/sk.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/sl.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/sr.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/sv.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/sw.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/ta.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/te.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/th.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/tr.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/uk.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/vi.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/zh-CN.pak +-rw-r--r-- root/root opt/minecraft-launcher/locales/zh-TW.pak +-rwxr-xr-x root/root opt/minecraft-launcher/minecraft-launcher +-rwxr-xr-x root/root opt/minecraft-launcher/natives_blob.bin +-rwxr-xr-x root/root opt/minecraft-launcher/snapshot_blob.bin +-rwxr-xr-x root/root opt/minecraft-launcher/v8_context_snapshot.bin +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +lrwxrwxrwx root/root usr/bin/minecraft-launcher -> /opt/minecraft-launcher/minecraft-launcher +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/minecraft-launcher.desktop +drwxr-xr-x root/root usr/share/icons/ +drwxr-xr-x root/root usr/share/icons/hicolor/ +drwxr-xr-x root/root usr/share/icons/hicolor/symbolic/ +drwxr-xr-x root/root usr/share/icons/hicolor/symbolic/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg diff --git a/minecraft-launcher/.signature b/minecraft-launcher/.signature new file mode 100644 index 000000000..04fc8e261 --- /dev/null +++ b/minecraft-launcher/.signature @@ -0,0 +1,7 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3yYk2GYMq5XmALUAytsJJ3JmE5K4YgVfX/uYO9A5VPAcEF5sxbc0+pT9XzaSGsJunUi8lqiP5GjJ+ThhXWBwIAU= +SHA256 (Pkgfile) = 0839d50f83780fa4d8a299770393caf0e2e2014f71e8908466e710e00c96e7b4 +SHA256 (.footprint) = 7310d79363730cec81d5b50a2fb658ea1cd634e613c8fa10987ffe4819a33e84 +SHA256 (minecraft-launcher_2.1.5965.tar.gz) = 85a0a2478861c3e660a1273f6b6ac2e14232ae439cd6d6172391065274228c72 +SHA256 (minecraft-launcher.svg) = 35c2bcaeb09fa4b8864e9422fd66bf60847706f8b4400ec4a66ba6436b101f71 +SHA256 (minecraft-launcher.desktop) = 677e2442a1ae83cc58d8d403666e508129e97dbed37fdfafdceac6101dc0dee7 diff --git a/minecraft-launcher/Pkgfile b/minecraft-launcher/Pkgfile new file mode 100644 index 000000000..8739d3b73 --- /dev/null +++ b/minecraft-launcher/Pkgfile @@ -0,0 +1,28 @@ +# Description: Official Minecraft Launcher. +# URL: https://mojang.com/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: openjdk8 + +name=minecraft-launcher +version=2.1.5965 +release=1 +source=(https://launcher.mojang.com/download/linux/x86_64/minecraft-launcher_$version.tar.gz + https://launcher.mojang.com/download/minecraft-launcher.svg + minecraft-launcher.desktop) + +build() { + install -d $PKG/opt + install -d $PKG/usr + install -d $PKG/usr/bin + + install -Dm644 $SRC/minecraft-launcher.svg \ + $PKG/usr/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg + + install -Dm644 $SRC/minecraft-launcher.desktop \ + $PKG/usr/share/applications/minecraft-launcher.desktop + + cp -Rv $SRC/minecraft-launcher $PKG/opt/minecraft-launcher + rm -rf $PKG/opt/minecraft-launcher/{include,lib} + + ln -s /opt/minecraft-launcher/minecraft-launcher $PKG/usr/bin/minecraft-launcher +} diff --git a/minecraft-launcher/README b/minecraft-launcher/README new file mode 100644 index 000000000..ed16ddf7e --- /dev/null +++ b/minecraft-launcher/README @@ -0,0 +1,11 @@ +PACKAGES NOTES + +This is the full version of the game, you need a valid account to play it. +To create an account, connect to http://www.minecraft.net/ and buy the full +game from the store. You should then be able to log in and play. + +The game will auto update and store the updated binary and game configuration +in ~/.minecraft + +For Java 9 users, please check the following link: http://bit.ly/2BAzKUP for +details about how to run the game properly. diff --git a/minecraft-launcher/minecraft b/minecraft-launcher/minecraft new file mode 100644 index 000000000..c1c050c4f --- /dev/null +++ b/minecraft-launcher/minecraft @@ -0,0 +1,30 @@ +#!/bin/sh + +# We need to force Java 8 here since both Java 7 and 9 currently causes the game to crash +export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:/usr/lib/jvm/java-8-jre/jre/bin/:$PATH + +# Since launching the minecraft launch from the home directory bypass the update mechanism, I'm adding this +# small piece of code that will do a checksum of the versions.json file provided by mojang, if a new version +# of the game is out, I force a download of the launcher just to keep everyone up to date + +# those 2 can be overrided if you want +MC_VERSION_URL=${MC_VERSION_URL:-"https://launchermeta.mojang.com/mc/game/version_manifest.json"} +MC_SUM_FILE=${MC_SUM_FILE:-"${HOME}/.minecraft/versions.sum"} + +# compute sums +MC_VERSION_SUM=$( curl -s "${MC_VERSION_URL}" | sha256sum | cut -f 1 -d " " ) +MC_CURRENT_SUM=$( cat "$MC_SUM_FILE" 2>/dev/null ) + +if [ "$MC_VERSION_SUM" != "$MC_CURRENT_SUM" ]; then + export MC_FORCE_UPDATE=1 + echo "$MC_VERSION_SUM" > "$MC_SUM_FILE" +fi + +if [ -e "${HOME}/.minecraft/launcher.jar" ] && [ -z "$MC_FORCE_UPDATE" ]; then + exec java -jar "${HOME}/.minecraft/launcher.jar" $@ +else + exec java -jar /usr/share/minecraft/Minecraft.jar $@ +fi + +unset MC_FORCE_UPDATE + diff --git a/minecraft-launcher/minecraft-launcher.desktop b/minecraft-launcher/minecraft-launcher.desktop new file mode 100644 index 000000000..bb1889f5b --- /dev/null +++ b/minecraft-launcher/minecraft-launcher.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Minecraft Launcher +Comment=Official Minecraft Launcher +Exec=/opt/minecraft-launcher/minecraft-launcher +Path=/opt/minecraft-launcher/ +Icon=minecraft-launcher +Terminal=false +Categories=Game;Application; |