Github messages for voidlinux
 help / color / mirror / Atom feed
From: selfisekai <selfisekai@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Insomnia package
Date: Thu, 30 Jul 2020 12:16:14 +0200	[thread overview]
Message-ID: <20200730101614.pF6WhqLhYmqV88KWBi9UQMqZ1fnw1dkkpKrpSdmbc8I@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23948@inbox.vuxu.org>

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

There is an updated pull request by selfisekai against master on the void-packages repository

https://github.com/selfisekai/void-packages insomnia-package
https://github.com/void-linux/void-packages/pull/23948

Insomnia package
merge #23947 first

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

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

From cf172217b1ea17856a70f669733a411fe0daf6f1 Mon Sep 17 00:00:00 2001
From: selfisekai <laura@selfisekai.rocks>
Date: Thu, 30 Jul 2020 11:19:10 +0200
Subject: [PATCH 1/2] nodejs build style

---
 common/build-style/nodejs.sh | 37 ++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 common/build-style/nodejs.sh

diff --git a/common/build-style/nodejs.sh b/common/build-style/nodejs.sh
new file mode 100644
index 00000000000..c9e749d3342
--- /dev/null
+++ b/common/build-style/nodejs.sh
@@ -0,0 +1,37 @@
+#
+# This helper is for templates for Node.js packages (including Electron.js)
+#
+
+do_configure() {
+    if [ -f "yarn.lock" ]; then
+        : ${nodejs_packager:=yarn}
+    else
+        : ${nodejs_packager:=npm}
+    fi
+
+    $nodejs_packager install
+}
+
+do_build() {
+    if [ -f "yarn.lock" ]; then
+        : ${nodejs_packager:=yarn}
+    else
+        : ${nodejs_packager:=npm}
+    fi
+
+    : ${nodejs_build_script:=build}
+
+    $nodejs_packager run $nodejs_build_script
+}
+
+do_install() {
+    if [ -f "yarn.lock" ]; then
+        : ${nodejs_packager:=yarn}
+    else
+        : ${nodejs_packager:=npm}
+    fi
+
+    : ${nodejs_install_script:=pack}  # name suggested by https://github.com/electron-userland/electron-builder#quick-setup-guide
+
+    $nodejs_packager run $nodejs_install_script
+}

From 56a79c2b6bee67ee82e9337ec9f1c4a9dbb517b2 Mon Sep 17 00:00:00 2001
From: selfisekai <laura@selfisekai.rocks>
Date: Thu, 30 Jul 2020 11:22:16 +0200
Subject: [PATCH 2/2] insomnia package

---
 srcpkgs/insomnia/files/insomnia.desktop | 11 +++++++
 srcpkgs/insomnia/template               | 38 +++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/insomnia/files/insomnia.desktop
 create mode 100644 srcpkgs/insomnia/template

diff --git a/srcpkgs/insomnia/files/insomnia.desktop b/srcpkgs/insomnia/files/insomnia.desktop
new file mode 100644
index 00000000000..66c2085f055
--- /dev/null
+++ b/srcpkgs/insomnia/files/insomnia.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Insomnia
+Comment=Design and debug APIs like a human, not a robot.
+GenericName=The Desktop API client for REST and GraphQL
+Exec=/usr/lib/insomnia/insomnia
+Icon=insomnia
+Type=Application
+StartupNotify=false
+StartupWMClass=Insomnia
+Categories=Utility;Development;
+Keywords=rest;graphql;request;
diff --git a/srcpkgs/insomnia/template b/srcpkgs/insomnia/template
new file mode 100644
index 00000000000..170477d2658
--- /dev/null
+++ b/srcpkgs/insomnia/template
@@ -0,0 +1,38 @@
+# Template file for 'insomnia'
+pkgname=insomnia
+version=2020.3.3
+revision=1
+wrksrc="insomnia-core-${version}"
+build_style=nodejs
+hostmakedepends="nodejs-lts-10"
+makedepends="gcc python3 fontconfig-devel"
+short_desc="Desktop API client for REST and GraphQL"
+maintainer="selfisekai <laura@selfisekai.rocks>"
+license="MIT"
+homepage="https://insomnia.rest/"
+# electron
+archs="x86_64"
+distfiles="https://github.com/Kong/insomnia/archive/core@${version}.tar.gz"
+checksum=82f3e7662944624ba45726e8ee9f776aa19b8f2a31f9767f2c2bc8ca0411844f
+nostrip_files="insomnia"
+
+do_build() {
+	npm run bootstrap
+	GIT_TAG="core@${version}" BUILD_TARGETS=dir npm run app-package
+}
+
+do_install() {
+	vmkdir usr/lib/insomnia
+	vcopy packages/insomnia-app/dist/linux-unpacked/* usr/lib/insomnia
+
+	vmkdir usr/bin
+	ln -sf /usr/lib/insomnia/insomnia ${DESTDIR}/usr/bin/
+
+	vmkdir usr/share/pixmaps
+	vinstall packages/insomnia-app/app/static/icon.png 664 usr/share/pixmaps insomnia.png
+
+	vmkdir usr/share/applications
+	vinstall ${FILESDIR}/insomnia.desktop 775 usr/share/applications
+
+	vlicense LICENSE
+}

  parent reply	other threads:[~2020-07-30 10:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30  9:23 [PR PATCH] " selfisekai
2020-07-30  9:41 ` [PR PATCH] [Updated] " selfisekai
2020-07-30 10:16 ` selfisekai [this message]
2020-07-30 10:19 ` selfisekai
2020-07-30 10:46 ` selfisekai
2020-11-04 15:53 ` kedodrill
2021-06-13 12:35 ` [PR PATCH] [Closed]: " selfisekai

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=20200730101614.pF6WhqLhYmqV88KWBi9UQMqZ1fnw1dkkpKrpSdmbc8I@z \
    --to=selfisekai@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).