From aaac3a8d2c396dd4b8d0f64ad8f597182c06fe30 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Fri, 4 Jan 2013 15:37:44 +0100
Subject: [PATCH] minecraft: misc improvements; mention required java impl.

---
 srcpkgs/minecraft/INSTALL         | 14 ++++++++++++++
 srcpkgs/minecraft/files/minecraft |  0
 srcpkgs/minecraft/template        | 17 +++++++++--------
 3 files changed, 23 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/minecraft/INSTALL
 mode change 100755 => 100644 srcpkgs/minecraft/files/minecraft

diff --git a/srcpkgs/minecraft/INSTALL b/srcpkgs/minecraft/INSTALL
new file mode 100644
index 0000000000..382a1b2219
--- /dev/null
+++ b/srcpkgs/minecraft/INSTALL
@@ -0,0 +1,14 @@
+case "${ACTION}" in
+post)
+	cat <<_EOF
+==========================================================================
+
+To start the Minecraft launcher a java implementation is required,
+right now you can install the Oracle propietary "jre" package available
+in the nonfree repository; alternatively you can also use your own
+and make sure that "java" executable is in your PATH.
+
+==========================================================================
+_EOF
+	;;
+esac
diff --git a/srcpkgs/minecraft/files/minecraft b/srcpkgs/minecraft/files/minecraft
old mode 100755
new mode 100644
diff --git a/srcpkgs/minecraft/template b/srcpkgs/minecraft/template
index 6e2adac9bb..fc37389a52 100644
--- a/srcpkgs/minecraft/template
+++ b/srcpkgs/minecraft/template
@@ -1,16 +1,11 @@
-# Template build file for 'pkg-config'
+# Template build file for 'minecraft'
 pkgname=minecraft
-version=0.1
+version=0.2
 revision=1
 short_desc="Launcher for the famous Minecraft game"
 maintainer="pancake <pancake@nopcode.org>"
-noarch=yes
-nofetch=yes
-noextract=yes
 homepage="http://www.minecraft.net/"
 license="Propietary"
-nonfree=yes
-fulldepends="wmname wget"
 long_desc="
 Minecraft is a game about breaking and placing blocks. At first, people
 built structures to protect against nocturnal monsters, but as the game
@@ -21,6 +16,12 @@ over a blocky ocean. I's pretty. Brave players battle terrible things
 in The Nether, which is more scary than pretty. You can also visit a
 land of mushrooms if it sounds more like your cup of tea."
 
+noarch=yes
+nofetch=yes
+noextract=yes
+nonfree=yes
+depends="wmname wget"
+
 do_install() {
-	vinstall ${FILESDIR}/minecraft 755 usr/bin minecraft
+	vinstall ${FILESDIR}/minecraft 755 usr/bin
 }