Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: browsh-1.6.4
@ 2019-07-19 21:38 voidlinux-github
  2019-07-19 21:39 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-19 21:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From ae171f8c19d846056a0cbc4d3e4f905130d54b17 Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

---
 srcpkgs/browsh/patches/go-bindata.patch | 18 +++++++++
 srcpkgs/browsh/template                 | 50 +++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..76601c62c84
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,50 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src/browsh"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+do_build() {
+	cd "$GOSRCPATH/interfacer"
+	go build -o browsh src/main.go
+}
+
+do_install() {
+	vbin interfacer/browsh
+}
+
+post_install() {
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
  2019-07-19 21:39 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-19 21:39 ` voidlinux-github
  2019-07-20  2:39 ` voidlinux-github
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-19 21:39 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From 602bcf524085bd58e09ff1606bb9455816403378 Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

---
 srcpkgs/browsh/patches/go-bindata.patch | 18 ++++++++++
 srcpkgs/browsh/template                 | 45 +++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..d34423149a5
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,45 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+do_install() {
+	vbin ${GOPATH}/bin/src browsh
+}
+
+post_install() {
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
@ 2019-07-19 21:39 ` voidlinux-github
  2019-07-19 21:39 ` voidlinux-github
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-19 21:39 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From 602bcf524085bd58e09ff1606bb9455816403378 Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

---
 srcpkgs/browsh/patches/go-bindata.patch | 18 ++++++++++
 srcpkgs/browsh/template                 | 45 +++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..d34423149a5
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,45 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+do_install() {
+	vbin ${GOPATH}/bin/src browsh
+}
+
+post_install() {
+	vlicense LICENSE
+}

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

* Re: New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
  2019-07-19 21:39 ` [PR PATCH] [Updated] " voidlinux-github
  2019-07-19 21:39 ` voidlinux-github
@ 2019-07-20  2:39 ` voidlinux-github
  2019-07-20 11:32 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-20  2:39 UTC (permalink / raw)
  To: ml

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

New comment by zhengqunkoo on void-packages repository

https://github.com/void-linux/void-packages/pull/13241#issuecomment-513428580
Comment:
Well, thanks for looking into it! I really appreciate it.

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

* Re: [PR PATCH] [Updated] New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
                   ` (3 preceding siblings ...)
  2019-07-20 11:32 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-20 11:32 ` voidlinux-github
  2019-07-20 11:38 ` voidlinux-github
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-20 11:32 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From e7681f761708958c96687f18800de518f34e289d Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

---
 srcpkgs/browsh/patches/go-bindata.patch | 18 +++++++++++
 srcpkgs/browsh/template                 | 42 +++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..7f6cbaaddca
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,42 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/{src,browsh}
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
                   ` (2 preceding siblings ...)
  2019-07-20  2:39 ` voidlinux-github
@ 2019-07-20 11:32 ` voidlinux-github
  2019-07-20 11:32 ` voidlinux-github
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-20 11:32 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From e7681f761708958c96687f18800de518f34e289d Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

---
 srcpkgs/browsh/patches/go-bindata.patch | 18 +++++++++++
 srcpkgs/browsh/template                 | 42 +++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..7f6cbaaddca
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,42 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/{src,browsh}
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
                   ` (4 preceding siblings ...)
  2019-07-20 11:32 ` voidlinux-github
@ 2019-07-20 11:38 ` voidlinux-github
  2019-07-20 11:38 ` voidlinux-github
  2019-07-20 11:38 ` [PR PATCH] [Merged]: " voidlinux-github
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-20 11:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From 4288721d4153736435f716343d8f50c617232dab Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

closes #11006
closes #13169
---
 srcpkgs/browsh/patches/go-bindata.patch | 18 +++++++++++
 srcpkgs/browsh/template                 | 42 +++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..7f6cbaaddca
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,42 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/{src,browsh}
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
                   ` (5 preceding siblings ...)
  2019-07-20 11:38 ` voidlinux-github
@ 2019-07-20 11:38 ` voidlinux-github
  2019-07-20 11:38 ` [PR PATCH] [Merged]: " voidlinux-github
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-20 11:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Johnnynator/void-packages browsh
https://github.com/void-linux/void-packages/pull/13241

New package: browsh-1.6.4
@zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

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

From 4288721d4153736435f716343d8f50c617232dab Mon Sep 17 00:00:00 2001
From: zhengqunkoo <zhengqun.koo@gmail.com>
Date: Tue, 16 Apr 2019 15:35:21 +0800
Subject: [PATCH] New package: browsh-1.6.4

closes #11006
closes #13169
---
 srcpkgs/browsh/patches/go-bindata.patch | 18 +++++++++++
 srcpkgs/browsh/template                 | 42 +++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/browsh/patches/go-bindata.patch
 create mode 100644 srcpkgs/browsh/template

diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
new file mode 100644
index 00000000000..08b9763ccc3
--- /dev/null
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -0,0 +1,18 @@
+Source: John <johnz@posteo.net>
+Upsteam: no
+Reason: Our go-bindata seems to strip prefixed slash even when -prefix doesn't
+end with one.
+---
+diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
+index 00a9d72..2620522 100644
+--- interfacer/src/browsh/firefox.go
++++ interfacer/src/browsh/firefox.go
+@@ -227,7 +227,7 @@ func firefoxMarionette() {
+ // Install the Browsh extension that was bundled with `go-bindata` under
+ // `webextension.go`.
+ func installWebextension() {
+-	data, err := Asset("/browsh.xpi")
++	data, err := Asset("browsh.xpi")
+ 	if err != nil {
+ 		Shutdown(err)
+ 	}
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
new file mode 100644
index 00000000000..7f6cbaaddca
--- /dev/null
+++ b/srcpkgs/browsh/template
@@ -0,0 +1,42 @@
+# Template file for 'browsh'
+pkgname=browsh
+version=1.6.4
+revision=1
+build_style=go
+go_import_path="github.com/browsh-org/browsh"
+go_package="$go_import_path/interfacer/src"
+hostmakedepends="curl dep go-bindata"
+depends="firefox"
+short_desc="Fully-modern text-based browser, rendering to TTY and browsers"
+maintainer="zhengqunkoo <root@zhengqunkoo.com>"
+license="LGPL-2.1-only"
+homepage="https://www.brow.sh/"
+distfiles="https://$go_import_path/archive/v$version.tar.gz
+ https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi>browsh.xpi"
+checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
+ b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
+skip_extraction="browsh.xpi"
+
+# Manipulate paths, because nested dir of repo is a go package
+pre_build() {
+	INTERFACER_ROOT="$GOSRCPATH/interfacer"
+	cd $INTERFACER_ROOT
+
+	dep ensure
+	# main.go expects browsh/interfacer/src/browsh in GOPATH/src
+	cd $GOPATH
+	ln -nfs "$GOSRCPATH" src/browsh
+
+	xpi_file="$XBPS_SRCDISTDIR/$pkgname-$version/browsh.xpi"
+	destination=$INTERFACER_ROOT/src/browsh/webextension.go
+	go-bindata \
+		-prefix "$XBPS_SRCDISTDIR/$pkgname-$version" \
+		-pkg browsh \
+		-o ${destination} \
+		${xpi_file}
+}
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/{src,browsh}
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Merged]: New package: browsh-1.6.4
  2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
                   ` (6 preceding siblings ...)
  2019-07-20 11:38 ` voidlinux-github
@ 2019-07-20 11:38 ` voidlinux-github
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-20 11:38 UTC (permalink / raw)
  To: ml

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

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

New package: browsh-1.6.4
https://github.com/void-linux/void-packages/pull/13241
Description: @zhengqunkoo Sry that I didn't get back to #11006 . Just found some time to actually look into it and get it running.

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

end of thread, other threads:[~2019-07-20 11:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 21:38 [PR PATCH] New package: browsh-1.6.4 voidlinux-github
2019-07-19 21:39 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-19 21:39 ` voidlinux-github
2019-07-20  2:39 ` voidlinux-github
2019-07-20 11:32 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-20 11:32 ` voidlinux-github
2019-07-20 11:38 ` voidlinux-github
2019-07-20 11:38 ` voidlinux-github
2019-07-20 11:38 ` [PR PATCH] [Merged]: " voidlinux-github

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