Github messages for voidlinux
 help / color / mirror / Atom feed
From: ReneganRonin <ReneganRonin@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [New Package] asar
Date: Sat, 29 May 2021 16:29:35 +0200	[thread overview]
Message-ID: <20210529142935.lt3quv5-bnPY82Wh69ua_1n_8OUH9tJopxQGIcCCi80@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31205@inbox.vuxu.org>

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

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

https://github.com/ReneganRonin/void-packages master
https://github.com/void-linux/void-packages/pull/31205

[New Package] asar
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 9208add2585c688ec7aab3e38c0bb1808ddf8f3a Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Sat, 29 May 2021 19:34:03 +0800
Subject: [PATCH 1/4] Adding asar

---
 srcpkgs/asar/template | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 srcpkgs/asar/template

diff --git a/srcpkgs/asar/template b/srcpkgs/asar/template
new file mode 100644
index 000000000000..d9204ea81430
--- /dev/null
+++ b/srcpkgs/asar/template
@@ -0,0 +1,32 @@
+# Template file for 'asar'
+pkgname=asar
+version=3.0.3
+revision=1
+archs="x86_64"
+#wrksrc=
+#create_wrksrc=yes
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="nodejs"
+short_desc="Creating Electron app packages"
+maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+license="MIT"
+homepage="https://github.com/electron/asar"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=0a5ded75457fd95d87ec17586d7db7bea32db2df2f52961170064ab0b0ff8b5a
+python_version=3
+
+do_build() {
+	npm install --no-optional
+}
+
+do_install() {
+	vmkdir usr/bin
+	vmkdir usr/lib/node_modules/asar/
+	vcopy * usr/lib/node_modules/asar/
+	ln -s /usr/lib/node_modules/asar/bin/asar.js "${DESTDIR}"/usr/bin/asar
+	vlicense LICENSE.md
+}

From ea146fb989a7868b527b4ad8d1a76f4661df86f0 Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Sat, 29 May 2021 19:59:33 +0800
Subject: [PATCH 2/4] Removing unnecessary lines

---
 srcpkgs/asar/template | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/srcpkgs/asar/template b/srcpkgs/asar/template
index d9204ea81430..70c5a7827607 100644
--- a/srcpkgs/asar/template
+++ b/srcpkgs/asar/template
@@ -3,13 +3,6 @@ pkgname=asar
 version=3.0.3
 revision=1
 archs="x86_64"
-#wrksrc=
-#create_wrksrc=yes
-#configure_args=""
-#make_build_args=""
-#make_install_args=""
-#conf_files=""
-#make_dirs="/var/log/dir 0755 root root"
 hostmakedepends="nodejs"
 short_desc="Creating Electron app packages"
 maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"

From ea7cd931c0ac7e04c1f9b287f8041661cbc082c4 Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Sat, 29 May 2021 20:04:56 +0800
Subject: [PATCH 3/4] Add 'depends=nodejs'

---
 srcpkgs/asar/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/asar/template b/srcpkgs/asar/template
index 70c5a7827607..ca9838ca7ca0 100644
--- a/srcpkgs/asar/template
+++ b/srcpkgs/asar/template
@@ -4,6 +4,7 @@ version=3.0.3
 revision=1
 archs="x86_64"
 hostmakedepends="nodejs"
+depends="nodejs"
 short_desc="Creating Electron app packages"
 maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
 license="MIT"

From 82da1ade54fa5d55a82c63566b81a015f3845c8e Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Sat, 29 May 2021 22:29:11 +0800
Subject: [PATCH 4/4] Add obsidian

---
 srcpkgs/obsidian/files/obsidian         |  2 ++
 srcpkgs/obsidian/files/obsidian.desktop | 11 ++++++++++
 srcpkgs/obsidian/template               | 29 +++++++++++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 srcpkgs/obsidian/files/obsidian
 create mode 100644 srcpkgs/obsidian/files/obsidian.desktop
 create mode 100644 srcpkgs/obsidian/template

diff --git a/srcpkgs/obsidian/files/obsidian b/srcpkgs/obsidian/files/obsidian
new file mode 100644
index 000000000000..a1e2352262fc
--- /dev/null
+++ b/srcpkgs/obsidian/files/obsidian
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/electron12 /usr/lib/obsidian/app.asar --no-sandbox "$@"
diff --git a/srcpkgs/obsidian/files/obsidian.desktop b/srcpkgs/obsidian/files/obsidian.desktop
new file mode 100644
index 000000000000..8014114a866b
--- /dev/null
+++ b/srcpkgs/obsidian/files/obsidian.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Obsidian
+Exec=obsidian %U
+Terminal=false
+Type=Application
+Icon=obsidian
+StartupWMClass=obsidian
+X-AppImage-Version=0.11.9
+Comment=Obsidian
+MimeType=x-scheme-handler/obsidian;
+Categories=Office;
diff --git a/srcpkgs/obsidian/template b/srcpkgs/obsidian/template
new file mode 100644
index 000000000000..c7fe53253823
--- /dev/null
+++ b/srcpkgs/obsidian/template
@@ -0,0 +1,29 @@
+# Template file for 'obsidian'
+pkgname=obsidian
+version=0.12.3
+revision=1
+archs="x86_64"
+makedepends="asar nodejs"
+depends="zlib hicolor-icon-theme fuse electron12"
+short_desc="Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files"
+maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+license="custom:Commercial"
+homepage="https://obsidian.md/"
+distfiles="https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}.tar.gz"
+checksum=9f0b50a7b064319c0ccdf9c0e7075c30085f7b333ffcb9bd71fd296ef9ce5591
+
+pre_install() {
+	asar ef resources/obsidian.asar icon.png
+}
+
+do_install() {
+	ls
+	vmkdir usr/bin
+	vmkdir usr/lib/obsidian
+	vbin ${FILESDIR}/obsidian obsidian
+	vinstall ${FILESDIR}/obsidian.desktop 644 usr/share/applications
+	vinstall icon.png 644 usr/share/pixmaps/obsidian.png
+	vcopy resources/* usr/lib/obsidian/
+	vlicense LICENSE.electron.txt
+	vlicense LICENSES.chromium.html
+}

  reply	other threads:[~2021-05-29 14:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 12:12 [PR PATCH] " ReneganRonin
2021-05-29 14:29 ` ReneganRonin [this message]
2021-05-31  2:01 ` ReneganRonin
2021-05-31  2:08 ` [PR PATCH] [Updated] [WIP] New Package: asar 3.0.3 ReneganRonin
2021-05-31  2:34 ` [PR REVIEW] " ericonr
2021-05-31 12:54 ` [PR PATCH] [Updated] " ReneganRonin
2021-05-31 21:24 ` ericonr
2021-06-02  2:34 ` [PR PATCH] [Updated] " ReneganRonin
2021-06-04  5:22 ` ReneganRonin
2021-06-04  5:24 ` ReneganRonin
2021-06-04  5:26 ` ReneganRonin
2021-06-04  5:35 ` [PR PATCH] [Updated] " ReneganRonin
2021-06-04  5:37 ` [PR PATCH] [Closed]: " ReneganRonin

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=20210529142935.lt3quv5-bnPY82Wh69ua_1n_8OUH9tJopxQGIcCCi80@z \
    --to=reneganronin@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).