From 70be1c93393db18cd8c697c5c6b79fc7a25307e4 Mon Sep 17 00:00:00 2001 From: toluschr Date: Fri, 6 Sep 2019 21:43:45 +0200 Subject: [PATCH 1/3] New package: minecraft-launcher-2.1.5965 --- .../files/minecraft-launcher.desktop | 10 + .../files/minecraft-launcher.svg | 771 ++++++++++++++++++ srcpkgs/minecraft-launcher/template | 24 + 3 files changed, 805 insertions(+) create mode 100644 srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop create mode 100644 srcpkgs/minecraft-launcher/files/minecraft-launcher.svg create mode 100644 srcpkgs/minecraft-launcher/template diff --git a/srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop b/srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop new file mode 100644 index 00000000000..6b7fa419a1a --- /dev/null +++ b/srcpkgs/minecraft-launcher/files/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; diff --git a/srcpkgs/minecraft-launcher/files/minecraft-launcher.svg b/srcpkgs/minecraft-launcher/files/minecraft-launcher.svg new file mode 100644 index 00000000000..f471f848152 --- /dev/null +++ b/srcpkgs/minecraft-launcher/files/minecraft-launcher.svg @@ -0,0 +1,771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/srcpkgs/minecraft-launcher/template b/srcpkgs/minecraft-launcher/template new file mode 100644 index 00000000000..c63d7777bd6 --- /dev/null +++ b/srcpkgs/minecraft-launcher/template @@ -0,0 +1,24 @@ +# Template file for 'minecraft-launcher' +pkgname=minecraft-launcher +version=2.1.5965 +revision=1 +archs=x86_64 +wrksrc=${pkgname} +depends="openjdk-jre" +short_desc="Launcher for the famous Minecraft game" +maintainer="toluschr " +homepage="http://www.minecraft.net/" +license="Propietary" +repository=nonfree +distfiles="https://launcher.mojang.com/download/Minecraft.tar.gz" +checksum=85a0a2478861c3e660a1273f6b6ac2e14232ae439cd6d6172391065274228c72 +nopie=yes + +do_install() { + vmkdir /opt/${pkgname}/ + vcopy ${wrksrc} /opt/ + vmkdir /usr/share/icons/hicolor/symbolic/apps/ + vcopy ${FILESDIR}/minecraft-launcher.svg /usr/share/icons/hicolor/symbolic/apps/ + vmkdir /usr/share/applications/ + vcopy ${FILESDIR}/minecraft-launcher.desktop /usr/share/applications/ +} From 8e25d6e7d593e0d0e2f8ada3f3273629f3bc3081 Mon Sep 17 00:00:00 2001 From: toluschr Date: Sat, 7 Sep 2019 21:39:52 +0200 Subject: [PATCH 2/3] minecraft-launcher: use tabs instead of spaces --- srcpkgs/minecraft-launcher/template | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/srcpkgs/minecraft-launcher/template b/srcpkgs/minecraft-launcher/template index c63d7777bd6..d3270f1a68a 100644 --- a/srcpkgs/minecraft-launcher/template +++ b/srcpkgs/minecraft-launcher/template @@ -7,18 +7,18 @@ wrksrc=${pkgname} depends="openjdk-jre" short_desc="Launcher for the famous Minecraft game" maintainer="toluschr " +license="SPDX" homepage="http://www.minecraft.net/" -license="Propietary" -repository=nonfree distfiles="https://launcher.mojang.com/download/Minecraft.tar.gz" checksum=85a0a2478861c3e660a1273f6b6ac2e14232ae439cd6d6172391065274228c72 nopie=yes +repository=nonfree do_install() { - vmkdir /opt/${pkgname}/ - vcopy ${wrksrc} /opt/ - vmkdir /usr/share/icons/hicolor/symbolic/apps/ - vcopy ${FILESDIR}/minecraft-launcher.svg /usr/share/icons/hicolor/symbolic/apps/ - vmkdir /usr/share/applications/ - vcopy ${FILESDIR}/minecraft-launcher.desktop /usr/share/applications/ + vmkdir /opt/${pkgname}/ + vcopy ${wrksrc} /opt/ + vmkdir /usr/share/icons/hicolor/symbolic/apps/ + vcopy ${FILESDIR}/minecraft-launcher.svg /usr/share/icons/hicolor/symbolic/apps/ + vmkdir /usr/share/applications/ + vcopy ${FILESDIR}/minecraft-launcher.desktop /usr/share/applications/ } From b1bcfd724561eec97bbfdd5ac1f22a783f67f7a8 Mon Sep 17 00:00:00 2001 From: toluschr Date: Sun, 8 Sep 2019 15:40:10 +0200 Subject: [PATCH 3/3] minecraft-launcher: add virtual java dependency --- srcpkgs/minecraft-launcher/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/minecraft-launcher/template b/srcpkgs/minecraft-launcher/template index d3270f1a68a..c7fd6a6fac3 100644 --- a/srcpkgs/minecraft-launcher/template +++ b/srcpkgs/minecraft-launcher/template @@ -4,10 +4,10 @@ version=2.1.5965 revision=1 archs=x86_64 wrksrc=${pkgname} -depends="openjdk-jre" +depends="virtual?java-runtime" short_desc="Launcher for the famous Minecraft game" maintainer="toluschr " -license="SPDX" +license="Proprietary" homepage="http://www.minecraft.net/" distfiles="https://launcher.mojang.com/download/Minecraft.tar.gz" checksum=85a0a2478861c3e660a1273f6b6ac2e14232ae439cd6d6172391065274228c72