Package Details: zeit-now-bin 14.0.3-1

Git Clone URL: https://aur.archlinux.org/zeit-now-bin.git (read-only)
Package Base: zeit-now-bin
Description: Realtime Global Deployments by Zeit, pre-built binary (always latest version)
Upstream URL: https://zeit.co/now
Licenses: Apache
Conflicts: nodejs-now
Provides: zeit-now
Submitter: marsoft
Maintainer: marsoft
Last Packager: marsoft
Votes: 2
Popularity: 0.097237
First Submitted: 2018-04-07 23:46
Last Updated: 2019-03-22 23:20

Latest Comments

marsoft commented on 2019-03-22 23:24

Thanks @bryanjhv, I updated the code to use JSON API. But I decided to not depend on jq, just used grep+tr. It is not very clean but I hope we don't have to expect " character in the tag.

mischka commented on 2019-03-22 15:24

In case anyone is as careless as I am, I imagined this was the now desktop application, which auto-updates its cli version.

It is not, and this package needs to be reinstalled to actually update the cli, which is unfortunately less convenient than installing/updating manually from npm in my opinion.

bryanjhv commented on 2019-03-20 04:37

Hi! I like your package, just what I needed. Looking at PKGBUILD, I notice source is an HTML page and you do hackery to get info. GitHub provides a better way to fetch that via its API, giving JSON parseable output. I have some recommendations:

  1. makedepend on jq for parsing JSON output
  2. source to <https://api.github.com/repos/zeit/now-cli/releases/latest>
  3. get pkgver() by cat latest | jq -r '.tag_name'
  4. get .gz by cat latest | jq -r '.assets[]|select(.name=="now-linux.gz")|.browser_download_url'

Let me know if that helped.

marsoft commented on 2018-08-30 16:06

Fixed, thanks @jonnystoten. My bad.

jonnystoten commented on 2018-08-30 13:17

This package is broken for me. Looks like the binary now has the version number in the name. This diff fixes the build on my machine:

diff --git a/PKGBUILD b/PKGBUILD
index 0fddbf9..46db947 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,9 +31,9 @@ md5sums=('791963aabd72437c7d2af1df817e7966')
 validpgpkeys=()

 build() {
-       chmod +x now-linux
+       chmod +x now-linux-${pkgver}
 }

 package() {
-       install -D now-linux "${pkgdir}/usr/bin/now"
+       install -D now-linux-${pkgver} "${pkgdir}/usr/bin/now"
 }