From 70be1c93393db18cd8c697c5c6b79fc7a25307e4 Mon Sep 17 00:00:00 2001 From: toluschr Date: Fri, 6 Sep 2019 21:43:45 +0200 Subject: [PATCH 1/5] 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/5] 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/5] 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 From 6c441acf1ed35842a8032d1bcdb81913b1ff8631 Mon Sep 17 00:00:00 2001 From: toluschr Date: Wed, 18 Sep 2019 20:48:57 +0200 Subject: [PATCH 4/5] minecraft-launcher: extract .deb instead of .tar.gz --- .../files/minecraft-launcher.desktop | 10 - .../files/minecraft-launcher.svg | 771 ------------------ srcpkgs/minecraft-launcher/template | 17 +- 3 files changed, 9 insertions(+), 789 deletions(-) delete mode 100644 srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop delete mode 100644 srcpkgs/minecraft-launcher/files/minecraft-launcher.svg diff --git a/srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop b/srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop deleted file mode 100644 index 6b7fa419a1a..00000000000 --- a/srcpkgs/minecraft-launcher/files/minecraft-launcher.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[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 deleted file mode 100644 index f471f848152..00000000000 --- a/srcpkgs/minecraft-launcher/files/minecraft-launcher.svg +++ /dev/null @@ -1,771 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/srcpkgs/minecraft-launcher/template b/srcpkgs/minecraft-launcher/template index c7fd6a6fac3..0346d5016db 100644 --- a/srcpkgs/minecraft-launcher/template +++ b/srcpkgs/minecraft-launcher/template @@ -9,16 +9,17 @@ short_desc="Launcher for the famous Minecraft game" maintainer="toluschr " license="Proprietary" homepage="http://www.minecraft.net/" -distfiles="https://launcher.mojang.com/download/Minecraft.tar.gz" -checksum=85a0a2478861c3e660a1273f6b6ac2e14232ae439cd6d6172391065274228c72 +distfiles="https://launcher.mojang.com/download/Minecraft.deb" +checksum="76e5484363ae4a5fff39642116b8cd7bc9edae8bccd6af838ae23c16b94fa5d8" 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/ + vcopy usr /usr + vcopy opt /opt +} + +do_extract() { + ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Minecraft.deb + tar xf data.tar.xz } From 554fe5a80dcdd42ef05ce4180aab7d5751ac23f4 Mon Sep 17 00:00:00 2001 From: toluschr Date: Thu, 19 Sep 2019 16:28:21 +0200 Subject: [PATCH 5/5] minecraft-launcher: rearrange function order --- srcpkgs/minecraft-launcher/template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/srcpkgs/minecraft-launcher/template b/srcpkgs/minecraft-launcher/template index 0346d5016db..a9bfdebbf95 100644 --- a/srcpkgs/minecraft-launcher/template +++ b/srcpkgs/minecraft-launcher/template @@ -8,18 +8,18 @@ depends="virtual?java-runtime" short_desc="Launcher for the famous Minecraft game" maintainer="toluschr " license="Proprietary" -homepage="http://www.minecraft.net/" +homepage="https://www.minecraft.net/" distfiles="https://launcher.mojang.com/download/Minecraft.deb" checksum="76e5484363ae4a5fff39642116b8cd7bc9edae8bccd6af838ae23c16b94fa5d8" nopie=yes repository=nonfree -do_install() { - vcopy usr /usr - vcopy opt /opt -} - do_extract() { ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Minecraft.deb tar xf data.tar.xz } + +do_install() { + vcopy usr /usr + vcopy opt /opt +}