Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: obsidian 0.12.3
@ 2021-06-05  0:50 ReneganRonin
  2021-06-05 20:30 ` [PR REVIEW] " Chocimier
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ReneganRonin @ 2021-06-05  0:50 UTC (permalink / raw)
  To: ml

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

There is a new 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: 5498 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/3] 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/3] 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 854cc38e3834d9397c704c561865942565989500 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:59 +0800
Subject: [PATCH 3/3] Adding new package obsidian

---
 srcpkgs/obsidian/files/obsidian         |  2 ++
 srcpkgs/obsidian/files/obsidian.desktop | 11 +++++++++
 srcpkgs/obsidian/template               | 30 +++++++++++++++++++++++++
 3 files changed, 43 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..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
new file mode 100644
index 000000000000..4f851e96454a
--- /dev/null
+++ b/srcpkgs/obsidian/template
@@ -0,0 +1,30 @@
+# 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
+
+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/}{} \;
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-16 22:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05  0:50 [PR PATCH] New package: obsidian 0.12.3 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
2022-01-16 22:21 ` [PR PATCH] [Closed]: " uncomfyhalomacro

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).