From 9ff865450eb68b903eebdc9f19fa66695e4715f9 Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 4 Jan 2013 15:09:20 +0100 Subject: [PATCH 1/2] Add minecraft package --- srcpkgs/minecraft/files/minecraft | 7 +++++++ srcpkgs/minecraft/template | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 srcpkgs/minecraft/files/minecraft create mode 100644 srcpkgs/minecraft/template diff --git a/srcpkgs/minecraft/files/minecraft b/srcpkgs/minecraft/files/minecraft new file mode 100755 index 00000000000..a0a3fdf80c1 --- /dev/null +++ b/srcpkgs/minecraft/files/minecraft @@ -0,0 +1,7 @@ +#!/bin/sh +HD=~/.minecraft +HDJ=$HD/minecraft.jar +[ ! -d ${HD} ] && mkdir $HD +[ ! -f ${HDJ} ] && wget -O $HDJ https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar +wmname LG3D +java -jar $HDJ diff --git a/srcpkgs/minecraft/template b/srcpkgs/minecraft/template new file mode 100644 index 00000000000..f2101f60d66 --- /dev/null +++ b/srcpkgs/minecraft/template @@ -0,0 +1,25 @@ +# Template build file for 'pkg-config' +pkgname=minecraft +version=0.1 +revision=1 +short_desc="Launcher for the famous Minecraft game" +maintainer="pancake " +noarch=yes +nofetch=yes +noextract=yes +homepage="http://www.minecraft.net/" +license="Propietary" +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 +grew players worked together to create wonderful, imaginative things. + +It can also be about adventuring with friends or watching the sun rise +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." + +do_install() { + vinstall ${FILESDIR}/minecraft 755 usr/bin minecraft +} From ce24ca42208b495eb290205e7af1e6bc45004e3e Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 4 Jan 2013 15:10:45 +0100 Subject: [PATCH 2/2] Add non-free flag into minecraft template --- srcpkgs/minecraft/template | 1 + 1 file changed, 1 insertion(+) diff --git a/srcpkgs/minecraft/template b/srcpkgs/minecraft/template index f2101f60d66..6e2adac9bb4 100644 --- a/srcpkgs/minecraft/template +++ b/srcpkgs/minecraft/template @@ -9,6 +9,7 @@ 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