mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-21 16:25:00 -05:00
add minecraft
This commit is contained in:
parent
678da3d3a5
commit
e2fd47cde7
90
src/minecraft/LICENSE
Normal file
90
src/minecraft/LICENSE
Normal file
@ -0,0 +1,90 @@
|
||||
# MINECRAFT END USER LICENCE AGREEMENT (Last updated 31th May 2016 11:53)
|
||||
|
||||
In order to protect Minecraft (our "Game") and the members of our community, we need these end user license terms to set out some rules for downloading and using our Game. This license is a legal agreement between you and us (Mojang AB) and describes the terms and conditions for using the Game. We don't like reading license documents any more than you do, so we have tried to keep this as short as possible. If you break these rules we may stop you from using our Game. If we think it is necessary, we might even have to ask our lawyers to help out.
|
||||
|
||||
If you buy, download, use or play our Game, you are agreeing to stick to the rules of these end user license agreement ("EULA") terms. If you don't want to or can't agree to these rules, then you must not buy, download, use or play our Game. This EULA incorporates the the terms of use for the mojang.com website ("Account Terms"), our brand and asset usage guidelines, and our our privacy policy. By agreeing to this EULA you also agree to all of the terms of the foregoing documents, so please read through them carefully.
|
||||
|
||||
* Account Terms: https://account.mojang.com/terms#website
|
||||
* Brand and asset usage guidelines: https://account.mojang.com/terms#brand
|
||||
* Privacy Policy: https://account.mojang.com/terms#privacy
|
||||
|
||||
## ONE MAJOR RULE
|
||||
|
||||
The one major rule is that you must not distribute anything we've made unless we specifically agree to it. By "distribute anything we've made" what we mean is:
|
||||
|
||||
* give copies of our Game to anyone else;
|
||||
* make commercial use of anything we've made;
|
||||
* try to make money from anything we've made; or
|
||||
* let other people get access to anything we've made in a way that is unfair or unreasonable;
|
||||
|
||||
unless we specifically agree to it. And so that we are crystal clear, "the Game" or "what we have made" includes, but is not limited to, the client or the server software for our Game and includes Minecraft Pocket Edition on all platforms. It also includes updates, patches, downloadable content, add-ons, or modified versions of a Game, part of those things, or anything else we've made.
|
||||
|
||||
Otherwise we are quite relaxed about what you do - in fact we really encourage you to do cool stuff - but just don't do those things that we say you can't.
|
||||
|
||||
## USING OUR GAME
|
||||
|
||||
You have been granted a license to the Game so you can play and use it, yourself, on your devices.
|
||||
|
||||
Below we also give you limited rights to do other things but we have to draw a line somewhere or else people will go too far. If you wish to make something pertaining to anything we've made we're humbled, but please make sure that it can't be interpreted as being official and that it complies with this EULA and the brand and asset usage guidelines and above all do not make commercial use of anything we've made.
|
||||
|
||||
The license and permission we give you to use and play our Game can be revoked if you break any of the terms of this EULA.
|
||||
|
||||
When you buy our Game, you receive a license that gives you permission to install the Game on your own personal device and use and play it on that device as set out in this EULA. This permission is personal to you, so you are not allowed to distribute the Game (or any part of it) to anyone else. This also means you cannot sell or rent the Game, or make it available for access to other people and you cannot pass on or resell any license keys. You may however give gift codes that have been bought through our official gift code system. This is important to help us stop piracy and fraud and to protect our Game. It is also important to prevent members of our community from buying pirated versions of our Game or fraudulent license keys - which we may cancel, such as in the case of fraud.
|
||||
|
||||
If you've bought the Game, you may play around with it and modify it by adding modifications, tools, or plugins, which we will refer to collectively as "Mods." By "Mods," we mean something original that you or someone else created that doesn't contain a substantial part of our copyrightable code or content. When you combine your Mod with the Minecraft software, we will call that combination a "Modded Version" of the Game. We have the final say on what constitutes a Mod and what doesn't. You may not distribute any Modded Versions of our Game or software, and we'd appreciate it if you didn't use Mods for griefing. Basically, Mods are okay to distribute; hacked versions or Modded Versions of the Game client or server software are not okay to distribute.
|
||||
|
||||
Within reason you're free to do whatever you want with screenshots and videos of the Game. By "within reason" we mean that you can't make any commercial use of them or do things that are unfair or adversely affect our rights unless we've specifically said it's okay in this EULA, allowed it through the Brand and Asset Usage Guidelines, or provided for it in a specific agreement with you. If you upload videos of the game to video sharing and streaming sites you are however allowed to put ads on them. Also, don't just rip art resources and pass them around, that's no fun.
|
||||
|
||||
Essentially the simple rule is do not make commercial use of anything we've made unless we've specifically said it's okay. Oh and if the law expressly allows it, such as under a "fair use" or fair dealing" doctrine then that's ok too - but only to the extent that the law applicable to you says so.
|
||||
|
||||
In order to ensure the integrity of the Game, we need all Game downloads and updates to come from an authorized source. It's also important for us that 3rd party tools/services don't seem "official" as we can't guarantee their quality. It's part of the responsibility we have to the customers of Minecraft. Make sure that you read through our brand and asset usage guidelines too.
|
||||
|
||||
## OWNERSHIP OF OUR GAME AND OTHER THINGS
|
||||
|
||||
Although we license you permission to install on your device and play our Game, we are still the owners of it. We are also the owners of our brands and any content contained in the Game. Therefore, when you pay for our Game, you are buying a license to play / use our Game in accordance with this EULA - you are not buying the Game itself. The only permissions you have in connection with the Game and your installation of it are the permissions set out in this EULA.
|
||||
|
||||
Any Mods you create for the Game from scratch belong to you (including pre-run Mods and in-memory Mods) and you can do whatever you want with them, as long as you don't sell them for money / try to make money from them and so long as you don't distribute Modded Versions of the Game. Remember that a Mod means something that is your original work and that does not contain a substantial part of our code or content. You only own what you created; you do not own our code or content.
|
||||
|
||||
## CONTENT
|
||||
|
||||
If you make any content available on or through our Game, you agree to give us permission to use, copy, modify, adapt, distribute, and publicly display that content. This permission is irrevocable, and you also agree to let us permit other people to use, copy, modify, adapt, distribute, and publicly display your content. You are not giving up your ownership rights in your content, you are just giving us and other users permission to use it. For example, we may need to copy, reformat, and distribute content that you post on our website so others can read it. If you don't want to give us these permissions, do not make content available on or through our Game. Please think carefully before you make any content available, because it may be made public and might even be used by other people in a way you don't like.
|
||||
|
||||
If you are going to make something available on or through our Game, it must not be offensive to people or illegal, it must be honest, and it must be your own creation. Some examples of the types of things you must not make available using our Game include: posts that include racist or homophobic language; posts that are bullying or trolling; posts that are offensive or that damage our or another person's reputation; posts that include porn or someone else's creation or image; or posts that impersonate a moderator or try to trick or exploit people.
|
||||
|
||||
Any content you make available on our Game must also be your creation or you must have permission or the legal right to do it. You must not and you agree that you will not make any content available, using the Game that infringes the rights of others.
|
||||
|
||||
We reserve the right to take down any content in our discretion.
|
||||
|
||||
Please watch out if you are talking to people in our Game. It is hard for either you or us to know for sure that what people say is true, or even if people are really who they say they are. You should think twice about giving out information about yourself.
|
||||
|
||||
## UPDATES
|
||||
|
||||
We might make upgrades, updates or patches (we call them all "updates") available from time to time, but we don't have to. We are also not obliged to provide ongoing support or maintenance of any Game. Of course, we hope to continue to release new updates for our Game, we just can't guarantee that we will do so. With updates come changes that might not work well with other software, such as Mods. This is unfortunate, but it is something we don't take responsibility for. If that is the case, try running an older version.
|
||||
|
||||
## LIABILITY AND GOVERNING LAW
|
||||
|
||||
The terms of this EULA do not affect any legal (statutory) rights that you may have under the law that applies to you for the Game. You might have certain rights which the law that applies to you says cannot be excluded. Nothing we say in these terms will affect those legal rights, even if we say something which sounds like it contradicts your legal rights. That's what we mean when we say "subject to applicable law".
|
||||
|
||||
SUBJECT TO APPLICABLE LAW, WHEN YOU GET A COPY OF OUR GAME, WE PROVIDE IT "'AS IS"'. UPDATES ARE ALSO PROVIDED "'AS IS"'. THIS MEANS THAT WE ARE NOT MAKING ANY PROMISES TO YOU ABOUT THE STANDARD OR QUALITY OF OUR GAME, OR THAT OUR GAME WILL BE UNINTERRUPTED OR ERROR FREE. WE ARE NOT RESPONSIBLE FOR ANY LOSS OR DAMAGE THAT IT MAY CAUSE. YOU BEAR THE ENTIRE RISK AS TO ITS QUALITY AND PERFORMANCE. YOU HAVE TO ACCEPT THAT WE MAY RELEASE GAMES WELL BEFORE THEY ARE COMPLETE AND SO THEY MAY (AND OFTEN WILL) HAVE BUGS -BUT WE PREFER TO RELEASE THESE FEATURES EARLY THAN MAKE YOU WAIT FOR PERFECTION. IF YOU WOULD LIKE TO NOTIFY US ABOUT A POTENTIAL BUG, WE HAVE A SITE FOR THAT HERE.
|
||||
|
||||
The laws of Washington State govern the interpretation of this EULA and claims for its breach, regardless of conflict of laws principles. The laws of your country govern all other claims and disputes (including consumer protection, unfair competition, and tort claims, and disputes relating to our Game, or our Website), regardless of conflict of laws principles.
|
||||
|
||||
## TERMINATION
|
||||
|
||||
If we want we can terminate this EULA if you breach any of the terms. You can terminate it too, at any time; all you have to do is uninstall the Game from your device and the EULA will be terminated. If the EULA is terminated, you will no longer have any of the rights to the Game given in this license. You do still have the right to things you have created yourself with the game of course. The paragraphs about "Ownership of Our Game", "Our Liability" and "General Stuff" will continue to apply even after the EULA is terminated.
|
||||
|
||||
## GENERAL STUFF
|
||||
|
||||
Your local law may give you rights that this EULA cannot change; if so, this EULA applies as far as the law allows. Nothing in this license limits our liability for death or bodily injury resulting from our negligence or fraudulent misrepresentations.
|
||||
|
||||
We may change this EULA from time to time, if we have reason to, such as changes to our games, our practices, or our legal obligation. But those changes will be effective only to the extent that they can legally apply. For example if you use the Game only in single-player mode and don't use the updates we make available then the old EULA applies but if you do use the updates or use parts of the game that rely on our providing ongoing online services then the new EULA will apply. In that case we'll inform you of the change before it takes effect, either by posting a notice on our Website or by other reasonable means. We're not going to be unfair about this though - but sometimes the law changes or someone does something that affects other users of the Game and we therefore need to put a lid on it.
|
||||
|
||||
If you come to us with a suggestion for any one of our Websites or Games, that suggestion is made for free and we have no obligation to accept or consider it. This means we can use or not use your suggestion in any way we want and we don't have to pay you for it. If you think you have a suggestion that we would be willing to pay you for, please do not submit your suggestion unless you have first told us you expect to be paid and we have responded in writing by asking you to submit the suggestion.
|
||||
|
||||
## COMPANY
|
||||
|
||||
Mojang AB
|
||||
Maria Skolgata 83BV
|
||||
118 53, Stockholm
|
||||
Sweden
|
||||
Organization number: 556819-2388
|
36
src/minecraft/PKGBUILD
Normal file
36
src/minecraft/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Christophe Robin <crobin@nekoo.com>
|
||||
# CVS for PKGBUILD is available at https://github.com/christopherobin/pkgbuilds/tree/master/minecraft
|
||||
pkgname=minecraft
|
||||
pkgver=latest
|
||||
pkgrel=29
|
||||
pkgdesc="An open-world game whose gameplay revolves around breaking and placing blocks"
|
||||
arch=(any)
|
||||
license=('custom')
|
||||
url="http://www.minecraft.net/"
|
||||
depends=('java-runtime>=8' 'xorg-xrandr' 'ttf-font' 'libxtst')
|
||||
noextract=('minecraft.jar')
|
||||
source=(minecraft http://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
|
||||
minecraft.desktop minecraft.png minecraft.install LICENSE)
|
||||
md5sums=('34440b7ad94c02762b9cbf78c7a1e23e'
|
||||
'85273e24404cc6865805f951487b8a1e'
|
||||
'ecb1bd9b6e6305987b6fb5832ab0b468'
|
||||
'dfecf76f9db4497399f4b7c171150c89'
|
||||
'acb5828c7b9136f66c4aa6fe44950e0f'
|
||||
'6e1dc1629eb95fd813ebe1bf632d6f2d')
|
||||
install='minecraft.install'
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
|
||||
install -D -m755 "${srcdir}/minecraft" "${pkgdir}/usr/bin/minecraft"
|
||||
install -D -m644 "${srcdir}/Minecraft.jar" "${pkgdir}/usr/share/minecraft/Minecraft.jar"
|
||||
|
||||
# Desktop launcher with icon
|
||||
install -D -m644 "${srcdir}/minecraft.desktop" "${pkgdir}/usr/share/applications/minecraft.desktop"
|
||||
install -D -m644 "${srcdir}/minecraft.png" "${pkgdir}/usr/share/pixmaps/minecraft.png"
|
||||
|
||||
# License
|
||||
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/minecraft/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=4 sw=4 et:
|
29
src/minecraft/minecraft
Executable file
29
src/minecraft/minecraft
Executable file
@ -0,0 +1,29 @@
|
||||
#!/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
|
9
src/minecraft/minecraft.desktop
Normal file
9
src/minecraft/minecraft.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Minecraft
|
||||
GenericName=Minecraft
|
||||
Comment=A game about placing blocks while running from skeletons.
|
||||
Exec=minecraft
|
||||
Icon=minecraft
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;
|
21
src/minecraft/minecraft.install
Normal file
21
src/minecraft/minecraft.install
Normal file
@ -0,0 +1,21 @@
|
||||
# This is a default template for a post-install scriptlet.
|
||||
# Uncomment only required functions and remove any functions
|
||||
# you don't need (and this header).
|
||||
|
||||
## arg 1: the new package version
|
||||
post_install() {
|
||||
echo "PACKAGES NOTES"
|
||||
echo "--------------"
|
||||
echo ""
|
||||
echo "This is the full version of the game, you need a valid account to play it."
|
||||
echo "To create an account, connect to http://www.minecraft.net/ and buy the full"
|
||||
echo "game from the store. You should then be able to log in and play."
|
||||
echo ""
|
||||
echo "The game will auto update and store the updated binary and game configuration"
|
||||
echo "in ~/.minecraft"
|
||||
echo ""
|
||||
echo "For Java 9 users, please check the following link: http://bit.ly/2BAzKUP for"
|
||||
echo "details about how to run the game properly."
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
BIN
src/minecraft/minecraft.png
Normal file
BIN
src/minecraft/minecraft.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
Loading…
Reference in New Issue
Block a user