Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] New package: Vieb-4.5.1
@ 2021-05-16 16:03 FollieHiyuki
  2021-05-16 16:13 ` [PR PATCH] [Updated] " FollieHiyuki
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-16 16:03 UTC (permalink / raw)
  To: ml

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

There is a new pull request by FollieHiyuki against master on the void-packages repository

https://github.com/FollieHiyuki/void-packages vieb
https://github.com/void-linux/void-packages/pull/30935

[WIP] New package: Vieb-4.5.1
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

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

From 377b9233106ac63fbe1e149ffb9ec6bc0109a854 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 18:59:50 +0300
Subject: [PATCH] New package: Vieb-4.5.1

---
 srcpkgs/Vieb/files/vieb         |  2 ++
 srcpkgs/Vieb/files/vieb.desktop | 10 +++++++
 srcpkgs/Vieb/template           | 48 +++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100755 srcpkgs/Vieb/files/vieb
 create mode 100644 srcpkgs/Vieb/files/vieb.desktop
 create mode 100644 srcpkgs/Vieb/template

diff --git a/srcpkgs/Vieb/files/vieb b/srcpkgs/Vieb/files/vieb
new file mode 100755
index 000000000000..360014a83973
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron12 /usr/lib/vieb.asar "$@"
diff --git a/srcpkgs/Vieb/files/vieb.desktop b/srcpkgs/Vieb/files/vieb.desktop
new file mode 100644
index 000000000000..5a5dcc71e220
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Vieb
+Exec=vieb
+Terminal=false
+Type=Application
+Icon=vieb
+StartupWMClass=Vieb
+Comment=Vim Inspired Electron Browser
+MimeType=x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/srcpkgs/Vieb/template b/srcpkgs/Vieb/template
new file mode 100644
index 000000000000..9cf132e71e76
--- /dev/null
+++ b/srcpkgs/Vieb/template
@@ -0,0 +1,48 @@
+# Template file for 'Vieb'
+pkgname=Vieb
+version=4.5.1
+revision=1
+_electron_ver=12
+hostmakedepends="yarn nodejs pkg-config app-builder"
+makedepends="electron${_electron_ver}"
+depends="electron${_electron_ver}"
+short_desc="Vim Inspired Electron Browser"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://vieb.dev/"
+distfiles="https://github.com/Jelmerro/Vieb/archive/${version}.tar.gz"
+checksum=cc0bdb19769f012bf3b7ebd41c85dcef6a38a50caf770f713874bdf529f0c917
+
+export USE_SYSTEM_APP_BUILDER=true
+
+do_configure() {
+        yarn install
+        # we can't make electron skip binary download as that fails in do_build
+        # so instead, force a bogus architecture so it downloads its binary
+        # artifact, it will use the system one later anyway
+        # but this appears to fail on i686, so don't override there
+        local carch=x64
+        case "$XBPS_TARGET_MACHINE" in
+                i686*) carch=ia32 ;;
+        esac
+        npm_config_arch=$carch \
+                yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
+                        --non-interactive
+}
+
+do_build() {
+        export NODE_ENV=production
+        yarn build --linux
+        yarn run electron-builder --linux --x64 --dir \
+                -c.electronDist=/usr/lib/electron${_electron_ver} \
+                -c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+}
+
+do_install() {
+        vinstall "${FILESDIR}/vieb.desktop" 644 usr/share/applications
+        vbin "${FILESDIR}/vieb"
+        for i in 16 24 48 64 96 128 256 512 1024; do
+                vinstall ${wrksrc}/app/img/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ vieb.png
+        done
+        vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib vieb.asar
+}

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

* Re: [PR PATCH] [Updated] [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
@ 2021-05-16 16:13 ` FollieHiyuki
  2021-05-16 16:15 ` FollieHiyuki
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-16 16:13 UTC (permalink / raw)
  To: ml

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

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

https://github.com/FollieHiyuki/void-packages vieb
https://github.com/void-linux/void-packages/pull/30935

[WIP] New package: Vieb-4.5.1
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

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

From 89a602d810cf36fce1fde88e7dd2c55cb7fe5211 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 18:59:50 +0300
Subject: [PATCH] New package: Vieb-4.5.1

---
 srcpkgs/Vieb/files/vieb         |  2 ++
 srcpkgs/Vieb/files/vieb.desktop | 10 +++++++
 srcpkgs/Vieb/template           | 48 +++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100755 srcpkgs/Vieb/files/vieb
 create mode 100644 srcpkgs/Vieb/files/vieb.desktop
 create mode 100644 srcpkgs/Vieb/template

diff --git a/srcpkgs/Vieb/files/vieb b/srcpkgs/Vieb/files/vieb
new file mode 100755
index 000000000000..360014a83973
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron12 /usr/lib/vieb.asar "$@"
diff --git a/srcpkgs/Vieb/files/vieb.desktop b/srcpkgs/Vieb/files/vieb.desktop
new file mode 100644
index 000000000000..5a5dcc71e220
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Vieb
+Exec=vieb
+Terminal=false
+Type=Application
+Icon=vieb
+StartupWMClass=Vieb
+Comment=Vim Inspired Electron Browser
+MimeType=x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/srcpkgs/Vieb/template b/srcpkgs/Vieb/template
new file mode 100644
index 000000000000..d4fdb9bd85e1
--- /dev/null
+++ b/srcpkgs/Vieb/template
@@ -0,0 +1,48 @@
+# Template file for 'Vieb'
+pkgname=Vieb
+version=4.5.1
+revision=1
+_electron_ver=12
+hostmakedepends="yarn nodejs pkg-config app-builder"
+makedepends="electron${_electron_ver}"
+depends="electron${_electron_ver}"
+short_desc="Vim Inspired Electron Browser"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://vieb.dev/"
+distfiles="https://github.com/Jelmerro/Vieb/archive/${version}.tar.gz"
+checksum=cc0bdb19769f012bf3b7ebd41c85dcef6a38a50caf770f713874bdf529f0c917
+
+export USE_SYSTEM_APP_BUILDER=true
+
+do_configure() {
+	yarn install
+	# we can't make electron skip binary download as that fails in do_build
+	# so instead, force a bogus architecture so it downloads its binary
+	# artifact, it will use the system one later anyway
+	# but this appears to fail on i686, so don't override there
+	local carch=x64
+	case "$XBPS_TARGET_MACHINE" in
+		i686*) carch=ia32 ;;
+	esac
+	npm_config_arch=$carch \
+		yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
+			--non-interactive
+}
+
+do_build() {
+	export NODE_ENV=production
+	yarn build --linux
+	yarn run electron-builder --linux --x64 --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+}
+
+do_install() {
+	vinstall "${FILESDIR}/vieb.desktop" 644 usr/share/applications
+	vbin "${FILESDIR}/vieb"
+	for i in 16 24 48 64 96 128 256 512 1024; do
+		vinstall ${wrksrc}/app/img/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ vieb.png
+	done
+	vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib vieb.asar
+}

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

* Re: [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
  2021-05-16 16:13 ` [PR PATCH] [Updated] " FollieHiyuki
@ 2021-05-16 16:15 ` FollieHiyuki
  2021-05-16 16:21 ` [PR PATCH] [Updated] " FollieHiyuki
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-16 16:15 UTC (permalink / raw)
  To: ml

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

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/pull/30935#issuecomment-841838899

Comment:
Closes #30165

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

* Re: [PR PATCH] [Updated] [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
  2021-05-16 16:13 ` [PR PATCH] [Updated] " FollieHiyuki
  2021-05-16 16:15 ` FollieHiyuki
@ 2021-05-16 16:21 ` FollieHiyuki
  2021-05-16 16:46 ` FollieHiyuki
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-16 16:21 UTC (permalink / raw)
  To: ml

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

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

https://github.com/FollieHiyuki/void-packages vieb
https://github.com/void-linux/void-packages/pull/30935

[WIP] New package: Vieb-4.5.1
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

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

From 105802abf2a4276aeaa29cce3ae491632dab44ea Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 18:59:50 +0300
Subject: [PATCH] New package: Vieb-4.5.1

---
 srcpkgs/Vieb/files/vieb         |  2 ++
 srcpkgs/Vieb/files/vieb.desktop | 10 +++++++
 srcpkgs/Vieb/template           | 48 +++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100755 srcpkgs/Vieb/files/vieb
 create mode 100644 srcpkgs/Vieb/files/vieb.desktop
 create mode 100644 srcpkgs/Vieb/template

diff --git a/srcpkgs/Vieb/files/vieb b/srcpkgs/Vieb/files/vieb
new file mode 100755
index 000000000000..360014a83973
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron12 /usr/lib/vieb.asar "$@"
diff --git a/srcpkgs/Vieb/files/vieb.desktop b/srcpkgs/Vieb/files/vieb.desktop
new file mode 100644
index 000000000000..5a5dcc71e220
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Vieb
+Exec=vieb
+Terminal=false
+Type=Application
+Icon=vieb
+StartupWMClass=Vieb
+Comment=Vim Inspired Electron Browser
+MimeType=x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/srcpkgs/Vieb/template b/srcpkgs/Vieb/template
new file mode 100644
index 000000000000..f600f69da62d
--- /dev/null
+++ b/srcpkgs/Vieb/template
@@ -0,0 +1,48 @@
+# Template file for 'Vieb'
+pkgname=Vieb
+version=4.5.1
+revision=1
+_electron_ver=12
+hostmakedepends="yarn nodejs pkg-config app-builder"
+makedepends="electron${_electron_ver}"
+depends="electron${_electron_ver}"
+short_desc="Vim inspired Electron browser"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://vieb.dev/"
+distfiles="https://github.com/Jelmerro/Vieb/archive/${version}.tar.gz"
+checksum=cc0bdb19769f012bf3b7ebd41c85dcef6a38a50caf770f713874bdf529f0c917
+
+export USE_SYSTEM_APP_BUILDER=true
+
+do_configure() {
+	yarn install
+	# we can't make electron skip binary download as that fails in do_build
+	# so instead, force a bogus architecture so it downloads its binary
+	# artifact, it will use the system one later anyway
+	# but this appears to fail on i686, so don't override there
+	local carch=x64
+	case "$XBPS_TARGET_MACHINE" in
+		i686*) carch=ia32 ;;
+	esac
+	npm_config_arch=$carch \
+		yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
+			--non-interactive
+}
+
+do_build() {
+	export NODE_ENV=production
+	yarn build --linux
+	yarn run electron-builder --linux --x64 --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+}
+
+do_install() {
+	vinstall "${FILESDIR}/vieb.desktop" 644 usr/share/applications
+	vbin "${FILESDIR}/vieb"
+	for i in 16 24 48 64 96 128 256 512 1024; do
+		vinstall ${wrksrc}/app/img/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ vieb.png
+	done
+	vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib vieb.asar
+}

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

* Re: [PR PATCH] [Updated] [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
                   ` (2 preceding siblings ...)
  2021-05-16 16:21 ` [PR PATCH] [Updated] " FollieHiyuki
@ 2021-05-16 16:46 ` FollieHiyuki
  2021-05-21 22:41 ` FollieHiyuki
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-16 16:46 UTC (permalink / raw)
  To: ml

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

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

https://github.com/FollieHiyuki/void-packages vieb
https://github.com/void-linux/void-packages/pull/30935

[WIP] New package: Vieb-4.5.1
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

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

From 021ec485e1098abee517aeab0ee3db94fa4cac81 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 18:59:50 +0300
Subject: [PATCH] New package: Vieb-4.5.1

---
 srcpkgs/Vieb/files/vieb         |  2 ++
 srcpkgs/Vieb/files/vieb.desktop | 10 ++++++++++
 srcpkgs/Vieb/template           | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100755 srcpkgs/Vieb/files/vieb
 create mode 100644 srcpkgs/Vieb/files/vieb.desktop
 create mode 100644 srcpkgs/Vieb/template

diff --git a/srcpkgs/Vieb/files/vieb b/srcpkgs/Vieb/files/vieb
new file mode 100755
index 000000000000..360014a83973
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron12 /usr/lib/vieb.asar "$@"
diff --git a/srcpkgs/Vieb/files/vieb.desktop b/srcpkgs/Vieb/files/vieb.desktop
new file mode 100644
index 000000000000..5a5dcc71e220
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Vieb
+Exec=vieb
+Terminal=false
+Type=Application
+Icon=vieb
+StartupWMClass=Vieb
+Comment=Vim Inspired Electron Browser
+MimeType=x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/srcpkgs/Vieb/template b/srcpkgs/Vieb/template
new file mode 100644
index 000000000000..6f866a9a3dd8
--- /dev/null
+++ b/srcpkgs/Vieb/template
@@ -0,0 +1,32 @@
+# Template file for 'Vieb'
+pkgname=Vieb
+version=4.5.1
+revision=1
+_electron_ver=12
+hostmakedepends="yarn nodejs pkg-config app-builder"
+makedepends="electron${_electron_ver}"
+depends="electron${_electron_ver}"
+short_desc="Vim inspired Electron browser"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://vieb.dev/"
+distfiles="https://github.com/Jelmerro/Vieb/archive/${version}.tar.gz"
+checksum=cc0bdb19769f012bf3b7ebd41c85dcef6a38a50caf770f713874bdf529f0c917
+
+export USE_SYSTEM_APP_BUILDER=true
+
+do_build() {
+	yarn install
+	yarn run electron-builder --linux --x64 --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+}
+
+do_install() {
+	vinstall "${FILESDIR}/vieb.desktop" 644 usr/share/applications
+	vbin "${FILESDIR}/vieb"
+	for i in 16 24 48 64 96 128 256 512 1024; do
+		vinstall ${wrksrc}/app/img/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ vieb.png
+	done
+	vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib vieb.asar
+}

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

* Re: [PR PATCH] [Updated] [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
                   ` (3 preceding siblings ...)
  2021-05-16 16:46 ` FollieHiyuki
@ 2021-05-21 22:41 ` FollieHiyuki
  2021-05-26 13:23 ` FollieHiyuki
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-21 22:41 UTC (permalink / raw)
  To: ml

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

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

https://github.com/FollieHiyuki/void-packages vieb
https://github.com/void-linux/void-packages/pull/30935

[WIP] New package: Vieb-4.5.1
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

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

From fcff65c81455bef0e008e41a8da9a40c0be5deac Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 18:59:50 +0300
Subject: [PATCH] New package: Vieb-4.5.1

---
 srcpkgs/Vieb/files/vieb         |  2 ++
 srcpkgs/Vieb/files/vieb.desktop | 10 ++++++++
 srcpkgs/Vieb/template           | 44 +++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100755 srcpkgs/Vieb/files/vieb
 create mode 100644 srcpkgs/Vieb/files/vieb.desktop
 create mode 100644 srcpkgs/Vieb/template

diff --git a/srcpkgs/Vieb/files/vieb b/srcpkgs/Vieb/files/vieb
new file mode 100755
index 000000000000..360014a83973
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron12 /usr/lib/vieb.asar "$@"
diff --git a/srcpkgs/Vieb/files/vieb.desktop b/srcpkgs/Vieb/files/vieb.desktop
new file mode 100644
index 000000000000..5a5dcc71e220
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Vieb
+Exec=vieb
+Terminal=false
+Type=Application
+Icon=vieb
+StartupWMClass=Vieb
+Comment=Vim Inspired Electron Browser
+MimeType=x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/srcpkgs/Vieb/template b/srcpkgs/Vieb/template
new file mode 100644
index 000000000000..8b3b37d3c579
--- /dev/null
+++ b/srcpkgs/Vieb/template
@@ -0,0 +1,44 @@
+# Template file for 'Vieb'
+pkgname=Vieb
+version=4.5.1
+revision=1
+_electron_ver=12
+hostmakedepends="yarn nodejs python3 pkg-config app-builder libnotify-devel"
+makedepends="electron${_electron_ver}"
+depends="electron${_electron_ver} c-ares ffmpeg gtk+3 http-parser libevent
+ libvpx6 libxslt minizip nss re2 snappy"
+short_desc="Vim inspired Electron browser"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://vieb.dev/"
+distfiles="https://github.com/Jelmerro/Vieb/archive/${version}.tar.gz"
+checksum=cc0bdb19769f012bf3b7ebd41c85dcef6a38a50caf770f713874bdf529f0c917
+
+export USE_SYSTEM_APP_BUILDER=true
+
+do_configure() {
+	yarn install
+	local carch=x64
+	case "$XBPS_TARGET_MACHINE" in
+		i686*) carch=ia32 ;;
+	esac
+	npm_config_arch=$carch \
+		yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
+			--non-interactive
+}
+
+do_build() {
+	export NODE_ENV=production
+	yarn run electron-builder --linux --x64 --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+}
+
+do_install() {
+	vinstall "${FILESDIR}/vieb.desktop" 644 usr/share/applications
+	vbin "${FILESDIR}/vieb"
+	for i in 16 24 48 64 96 128 256 512 1024; do
+		vinstall ${wrksrc}/app/img/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ vieb.png
+	done
+	vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib vieb.asar
+}

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

* Re: [PR PATCH] [Updated] [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
                   ` (4 preceding siblings ...)
  2021-05-21 22:41 ` FollieHiyuki
@ 2021-05-26 13:23 ` FollieHiyuki
  2021-10-01 10:38 ` FollieHiyuki
  2021-10-01 10:38 ` [PR PATCH] [Closed]: " FollieHiyuki
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-05-26 13:23 UTC (permalink / raw)
  To: ml

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

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

https://github.com/FollieHiyuki/void-packages vieb
https://github.com/void-linux/void-packages/pull/30935

[WIP] New package: Vieb-4.5.1
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

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

From 992856895680f79c99e660bf11c8a5ee13638dc5 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sun, 16 May 2021 18:59:50 +0300
Subject: [PATCH] New package: Vieb-5.0.0

---
 srcpkgs/Vieb/files/vieb         |  2 ++
 srcpkgs/Vieb/files/vieb.desktop | 10 ++++++++
 srcpkgs/Vieb/template           | 44 +++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100755 srcpkgs/Vieb/files/vieb
 create mode 100644 srcpkgs/Vieb/files/vieb.desktop
 create mode 100644 srcpkgs/Vieb/template

diff --git a/srcpkgs/Vieb/files/vieb b/srcpkgs/Vieb/files/vieb
new file mode 100755
index 000000000000..360014a83973
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron12 /usr/lib/vieb.asar "$@"
diff --git a/srcpkgs/Vieb/files/vieb.desktop b/srcpkgs/Vieb/files/vieb.desktop
new file mode 100644
index 000000000000..5a5dcc71e220
--- /dev/null
+++ b/srcpkgs/Vieb/files/vieb.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Vieb
+Exec=vieb
+Terminal=false
+Type=Application
+Icon=vieb
+StartupWMClass=Vieb
+Comment=Vim Inspired Electron Browser
+MimeType=x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/srcpkgs/Vieb/template b/srcpkgs/Vieb/template
new file mode 100644
index 000000000000..5db0e2d2ba5f
--- /dev/null
+++ b/srcpkgs/Vieb/template
@@ -0,0 +1,44 @@
+# Template file for 'Vieb'
+pkgname=Vieb
+version=5.0.0
+revision=1
+_electron_ver=12
+hostmakedepends="yarn nodejs python3 pkg-config app-builder libnotify-devel"
+makedepends="electron${_electron_ver}"
+depends="electron${_electron_ver} c-ares ffmpeg gtk+3 http-parser libevent
+ libvpx6 libxslt minizip nss re2 snappy"
+short_desc="Vim inspired Electron browser"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://vieb.dev/"
+distfiles="https://github.com/Jelmerro/Vieb/archive/${version}.tar.gz"
+checksum=d96b08be225e2c89a6fd48a4eeee032f7693210b3e05091185f1aa92b9bc904c
+
+export USE_SYSTEM_APP_BUILDER=true
+
+do_configure() {
+	yarn install
+	local carch=x64
+	case "$XBPS_TARGET_MACHINE" in
+		i686*) carch=ia32 ;;
+	esac
+	npm_config_arch=$carch \
+		yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
+			--non-interactive
+}
+
+do_build() {
+	export NODE_ENV=production
+	yarn run electron-builder --linux --x64 --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+}
+
+do_install() {
+	vinstall "${FILESDIR}/vieb.desktop" 644 usr/share/applications
+	vbin "${FILESDIR}/vieb"
+	for i in 16 24 48 64 96 128 256 512 1024; do
+		vinstall ${wrksrc}/app/img/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ vieb.png
+	done
+	vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib vieb.asar
+}

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

* Re: [PR PATCH] [Closed]: [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
                   ` (6 preceding siblings ...)
  2021-10-01 10:38 ` FollieHiyuki
@ 2021-10-01 10:38 ` FollieHiyuki
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-10-01 10:38 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

[WIP] New package: Vieb-4.5.1
https://github.com/void-linux/void-packages/pull/30935

Description:
<!-- 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
- [ ] 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
-->

I got error when launching vieb:
```
fish: Job 1, 'vieb' terminated by signal SIGSEGV (Address boundary error)
```

I have 0 knowledge about Electron, so I don't know how to fix.


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

* Re: [WIP] New package: Vieb-4.5.1
  2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
                   ` (5 preceding siblings ...)
  2021-05-26 13:23 ` FollieHiyuki
@ 2021-10-01 10:38 ` FollieHiyuki
  2021-10-01 10:38 ` [PR PATCH] [Closed]: " FollieHiyuki
  7 siblings, 0 replies; 9+ messages in thread
From: FollieHiyuki @ 2021-10-01 10:38 UTC (permalink / raw)
  To: ml

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

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/pull/30935#issuecomment-932117286

Comment:
Closing as I'm not interested in making the package work anymore.

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

end of thread, other threads:[~2021-10-01 10:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 16:03 [PR PATCH] [WIP] New package: Vieb-4.5.1 FollieHiyuki
2021-05-16 16:13 ` [PR PATCH] [Updated] " FollieHiyuki
2021-05-16 16:15 ` FollieHiyuki
2021-05-16 16:21 ` [PR PATCH] [Updated] " FollieHiyuki
2021-05-16 16:46 ` FollieHiyuki
2021-05-21 22:41 ` FollieHiyuki
2021-05-26 13:23 ` FollieHiyuki
2021-10-01 10:38 ` FollieHiyuki
2021-10-01 10:38 ` [PR PATCH] [Closed]: " FollieHiyuki

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