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: obsidian 0.12.3
Date: Mon, 21 Jun 2021 08:24:03 +0200	[thread overview]
Message-ID: <20210621062403.Mk-IKGcDpgQN2qmySzYiOdLSFP8QPRcm2lPYPBOkMgA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31293@inbox.vuxu.org>

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

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

https://github.com/ReneganRonin/void-packages obsidian
https://github.com/void-linux/void-packages/pull/31293

New package: obsidian 0.12.3
<!-- 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?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] 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/31293.patch is attached

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

From 4e37884ebf71a8cde67f2ce5d1d0e7a23289194d Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Fri, 4 Jun 2021 22:46:48 +0800
Subject: [PATCH 1/4] Adding new package modclean

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

diff --git a/srcpkgs/modclean/template b/srcpkgs/modclean/template
new file mode 100644
index 000000000000..e7d3329e5d28
--- /dev/null
+++ b/srcpkgs/modclean/template
@@ -0,0 +1,22 @@
+# Template file for 'modclean'
+pkgname=modclean
+version=3.0.0beta.1
+revision=1
+wrksrc="modclean-3.0.0-beta.1"
+create_wrksrc="yes"
+hostmakedepends="nodejs"
+makedepends="nodejs"
+depends="nodejs"
+short_desc="Remove unwanted files and directories from your node_modules folder"
+maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+license="MIT"
+homepage="https://github.com/ModClean/modclean"
+distfiles="${homepage}/archive/3.0.0-beta.1.tar.gz"
+checksum=58a39e8b4eed1da8131facfb21a455659144aacd250a73a6efaba31500b901f0
+
+do_install() {
+	npm install -g --user root --no-optional --prefix "$DESTDIR"/usr "${XBPS_SRCDISTDIR}/${pkgname}-${version}/3.0.0-beta.1.tar.gz"
+	ln -sf /usr/lib/node_modules/modclean/bin/modclean.js "$DESTDIR"/usr/bin/modclean
+	vdoc "$DESTDIR"/usr/lib/node_modules/modclean/README.md
+	vlicense "$DESTDIR"/usr/lib/node_modules/modclean/LICENSE
+}

From 685968b763723a0b9bbfed59cc861cd7c04a05ec Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Fri, 4 Jun 2021 22:47:27 +0800
Subject: [PATCH 2/4] Adding new package asar

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

diff --git a/srcpkgs/asar/template b/srcpkgs/asar/template
new file mode 100644
index 000000000000..93380b6528ad
--- /dev/null
+++ b/srcpkgs/asar/template
@@ -0,0 +1,25 @@
+# Template file for 'asar'
+pkgname=asar
+version=3.0.3
+revision=1
+hostmakedepends="nodejs"
+makedepends="nodejs modclean"
+depends="nodejs electron12"
+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_install() {
+	npm install -g --user root --engine-strict --prefix "$DESTDIR"/usr "${XBPS_SRCDISTDIR}/${pkgname}-${version}/v${version}.tar.gz"
+	local _npmdir="${DESTDIR}/usr/lib/node_modules/${pkgname}"
+	cd "$_npmdir"
+	modclean -r -a "*.ts,.bin,.vscode,bin.js" --ignore='license'
+	vlicense "$_npmdir/LICENSE.md"
+	vdoc "$_npmdir/README.md"
+}
+
+

From 58072a11c349540bcf617eac70f81021c549b703 Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Sun, 6 Jun 2021 07:41:44 +0800
Subject: [PATCH 3/4] Adding new package obsidian

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

diff --git a/srcpkgs/obsidian/template b/srcpkgs/obsidian/template
new file mode 100644
index 000000000000..9187fb952beb
--- /dev/null
+++ b/srcpkgs/obsidian/template
@@ -0,0 +1,31 @@
+# Template file for 'obsidian'
+pkgname=obsidian
+version=0.12.3
+revision=1
+makedepends="asar"
+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
+repository=nonfree
+restricted=yes
+
+post_extract() {
+	asar ef resources/obsidian.asar icon.png
+}
+
+do_install() {
+	vbin "$FILESDIR"/obsidian
+	vmkdir usr/share/applications/
+	vmkdir usr/share/pixmaps/
+	vcopy "$FILESDIR"/obsidian.desktop usr/share/applications/obsidian.desktop
+	vcopy "icon.png" usr/share/pixmaps/obsidian.png
+	vlicense LICENSE.electron.txt
+	vlicense LICENSES.chromium.html
+	cd resources
+	find . -type d -exec install -d {,"$DESTDIR"/usr/lib/obsidian/}{} \;
+	find . -type f -exec install -D -m 644 {,"$DESTDIR"/usr/lib/obsidian/}{} \;
+}

From 3ed9d5d6014b069a63882b6cf363241c63f2a39c Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Mon, 21 Jun 2021 11:54:07 +0800
Subject: [PATCH 4/4] Update obsidian template

---
 srcpkgs/obsidian/files/obsidian         |  2 ++
 srcpkgs/obsidian/files/obsidian.desktop | 11 +++++++++++
 srcpkgs/obsidian/template               |  4 ++--
 3 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100755 srcpkgs/obsidian/files/obsidian
 create mode 100644 srcpkgs/obsidian/files/obsidian.desktop

diff --git a/srcpkgs/obsidian/files/obsidian b/srcpkgs/obsidian/files/obsidian
new file mode 100755
index 000000000000..18e034f99c04
--- /dev/null
+++ b/srcpkgs/obsidian/files/obsidian
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/electron /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..a42baca454f3
--- /dev/null
+++ b/srcpkgs/obsidian/files/obsidian.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Obsidian
+Exec=/usr/bin/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
index 9187fb952beb..5461c079cd2e 100644
--- a/srcpkgs/obsidian/template
+++ b/srcpkgs/obsidian/template
@@ -1,6 +1,6 @@
 # Template file for 'obsidian'
 pkgname=obsidian
-version=0.12.3
+version=0.12.4
 revision=1
 makedepends="asar"
 depends="zlib hicolor-icon-theme fuse electron12"
@@ -9,7 +9,7 @@ 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
+checksum=d21a24cb7daed57736689ae05ee47dfa8d330b687d32e1eddda197ef3293bfbf
 repository=nonfree
 restricted=yes
 

  parent reply	other threads:[~2021-06-21  6:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-05  0:50 [PR PATCH] " ReneganRonin
2021-06-05 20:30 ` [PR REVIEW] " Chocimier
2021-06-05 23:42 ` [PR PATCH] [Updated] " ReneganRonin
2021-06-05 23:51 ` ReneganRonin
2021-06-05 23:55 ` [PR REVIEW] " ReneganRonin
2021-06-21  6:19 ` [PR PATCH] [Updated] " ReneganRonin
2021-06-21  6:24 ` ReneganRonin [this message]
2022-01-16 22:21 ` [PR PATCH] [Closed]: " uncomfyhalomacro

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=20210621062403.Mk-IKGcDpgQN2qmySzYiOdLSFP8QPRcm2lPYPBOkMgA@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).