From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: browsh-1.6.4
Date: Sat, 20 Jul 2019 13:32:21 +0200 [thread overview]
Message-ID: <20190720113221.vpfPA-BZRiFMB1wNwXFt4ZtAh4mJxKVQ_k8V4sWgyGI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-13241@inbox.vuxu.org>
[-- 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
+}
next prev parent reply other threads:[~2019-07-20 11:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-19 21:38 [PR PATCH] " 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 ` voidlinux-github [this message]
2019-07-20 11:32 ` [PR PATCH] [Updated] " 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
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=20190720113221.vpfPA-BZRiFMB1wNwXFt4ZtAh4mJxKVQ_k8V4sWgyGI@z \
--to=voidlinux-github@inbox.vuxu.org \
--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).