Github messages for voidlinux
 help / color / mirror / Atom feed
From: datsanakas <datsanakas@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] added multimc-bin package
Date: Sun, 03 Jul 2022 15:41:04 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37814@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

There is a new pull request by datsanakas against master on the void-packages repository

https://github.com/datsanakas/void-packages master
https://github.com/void-linux/void-packages/pull/37814

added multimc-bin package
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture (x86_64), though it should also work for i686 because the included run.sh script downloads the correct binary for the archicetecture

### Notes
- Since MultiMC can no longer be included in the main repo, I thought it might be useful to make a restricted package to allow easy system wide installation for those who want to play minecraft on void.
- The template is based on the official arch PKGBUILD.
   



A patch file from https://github.com/void-linux/void-packages/pull/37814.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-37814.patch --]
[-- Type: text/x-diff, Size: 2112 bytes --]

From 80b6d1ff7ccad830c3d9ffed495f5cedf84863f0 Mon Sep 17 00:00:00 2001
From: Dimitri Tsanakas <dimitri-tsanakas@protonmail.com>
Date: Sun, 3 Jul 2022 14:27:25 +0100
Subject: [PATCH] added multimc-bin package

---
 srcpkgs/multimc-bin/template | 37 ++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 srcpkgs/multimc-bin/template

diff --git a/srcpkgs/multimc-bin/template b/srcpkgs/multimc-bin/template
new file mode 100644
index 000000000000..9ea2036375f2
--- /dev/null
+++ b/srcpkgs/multimc-bin/template
@@ -0,0 +1,37 @@
+# Template file for 'multimc-bin'
+pkgname=multimc-bin
+version=1.6
+revision=1
+archs="x86_64 i686"
+short_desc="Free, open source launcher and instance manager for Minecraft."
+maintainer="datsanakas <dimitri@sploshy.net>"
+license="Apache-2.0"
+homepage="https://multimc.org/"
+distfiles="https://files.multimc.org/downloads/multimc_${version}-1.deb https://raw.githubusercontent.com/MultiMC/Launcher/f45f83173662ea8d28a6d69a5312679df76d762b/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1"
+checksum="d30b2577463178fd3cbe0dd30e68a30be3f85d8f50f8052e844a43acf4b46e0f c5413141151a5cb114d32c496cf49ba6bc4c755d51b1cad22aac70e38d3d3e46"
+depends="zlib mesa qt5-core qt5-x11extras qt5-svg xrandr zenity wget"
+repository=nonfree
+restricted=yes
+
+do_extract() {
+        ar p "${XBPS_SRCDISTDIR}/${pkgname}-${version}/multimc_${version}-1.deb" data.tar.xz | bsdtar --extract --xz -f - -C .
+        cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/multimc.1" .
+}
+
+do_install() {
+        vmkdir usr/bin
+        vmkdir usr/share/metainfo
+        vmkdir usr/share/applications
+        vmkdir usr/share/man/man1
+        vmkdir opt/multimc
+
+        vinstall usr/share/applications/multimc.desktop 644 usr/share/applications
+        vinstall usr/share/metainfo/multimc.metainfo.xml 644 usr/share/metainfo
+        vinstall multimc.1 644 usr/share/man/man1
+        vinstall opt/multimc/icon.svg 644 opt/multimc
+        vinstall opt/multimc/run.sh 755 opt/multimc
+
+        ln -sf /opt/multimc/run.sh ${DESTDIR}/usr/bin/multimc
+}
+
+

             reply	other threads:[~2022-07-03 13:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-03 13:41 datsanakas [this message]
2022-07-03 13:47 ` 0x5c
2022-07-03 15:24 ` [PR PATCH] [Closed]: " paper42
2022-07-03 15:24 ` paper42
2022-07-03 15:25 ` paper42

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37814@inbox.vuxu.org \
    --to=datsanakas@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).