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] [WIP] New Package: asar 3.0.3
Date: Wed, 02 Jun 2021 04:34:44 +0200	[thread overview]
Message-ID: <20210602023444.eGo3ITxFbmRZfzp4Zw4Qmh94qBd5q1rSbieRy8dyCGo@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: 1605 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

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

#### General
- [ ] 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: 5380 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/5] 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 feb968767343cec2e8aa41a583691c21ac148451 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/5] 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 e05522a85f83a31468e737a6f2a51ec22097715c Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Tue, 1 Jun 2021 10:20:38 +0800
Subject: [PATCH 3/5] Update template

---
 srcpkgs/asar/template | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/asar/template b/srcpkgs/asar/template
index 70c5a7827607..5a4af7e7949c 100644
--- a/srcpkgs/asar/template
+++ b/srcpkgs/asar/template
@@ -2,8 +2,9 @@
 pkgname=asar
 version=3.0.3
 revision=1
-archs="x86_64"
 hostmakedepends="nodejs"
+makedepends="nodejs modclean"
+depends="nodejs electron"
 short_desc="Creating Electron app packages"
 maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
 license="MIT"

From 0dba7001fa2bb219ba374d532ff68085d68d1f12 Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Tue, 1 Jun 2021 10:26:30 +0800
Subject: [PATCH 4/5] Add modclean

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

diff --git a/srcpkgs/modclean/template b/srcpkgs/modclean/template
new file mode 100644
index 000000000000..356b2d2175f3
--- /dev/null
+++ b/srcpkgs/modclean/template
@@ -0,0 +1,35 @@
+# 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_build() {
+	cd modclean-3.0.0-beta.1/
+	npm install --no-optional --save
+	./bin/modclean.js -r -a '.bin,bin.js' --ignore='license'
+	vlicense LICENSE
+}
+
+
+do_install() {
+	mv modclean-3.0.0-beta.1/* .
+	rm -rf modclean-3.0.0-beta.1
+	vmkdir usr/bin/
+	vmkdir usr/lib/node_modules/modclean/
+	vcopy "*" usr/lib/node_modules/modclean/
+}
+
+post_install() {
+	ln -sf /usr/lib/node_modules/modclean/bin/modclean.js "$DESTDIR"/usr/bin/modclean
+}

From 91e6bea5800b943702325ad6650e6f3f12601c8f Mon Sep 17 00:00:00 2001
From: "Soc Virnyl S. Estela" <66054069+ReneganRonin@users.noreply.github.com>
Date: Tue, 1 Jun 2021 14:33:02 +0800
Subject: [PATCH 5/5] Add asar

---
 srcpkgs/asar/template | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/asar/template b/srcpkgs/asar/template
index 5a4af7e7949c..69ae3b20b1d7 100644
--- a/srcpkgs/asar/template
+++ b/srcpkgs/asar/template
@@ -4,7 +4,7 @@ version=3.0.3
 revision=1
 hostmakedepends="nodejs"
 makedepends="nodejs modclean"
-depends="nodejs electron"
+depends="nodejs electron12"
 short_desc="Creating Electron app packages"
 maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
 license="MIT"
@@ -15,6 +15,7 @@ python_version=3
 
 do_build() {
 	npm install --no-optional
+	modclean -r -a "*.ts,.bin,.vscode,bin.js" --ignore='license'
 }
 
 do_install() {

  parent reply	other threads:[~2021-06-02  2:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 12:12 [PR PATCH] [New Package] asar ReneganRonin
2021-05-29 14:29 ` [PR PATCH] [Updated] " ReneganRonin
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 ` ReneganRonin [this message]
2021-06-04  5:22 ` [PR PATCH] [Updated] " 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=20210602023444.eGo3ITxFbmRZfzp4Zw4Qmh94qBd5q1rSbieRy8dyCGo@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).