Fix binaries

This commit is contained in:
Agustin Carrasco 2020-05-24 20:08:12 -03:00
parent f48ad04435
commit e5cb1739f7
2 changed files with 2 additions and 6 deletions

View file

@ -1,7 +1,7 @@
pkgbase = vercel pkgbase = vercel
pkgdesc = The command line interface for Vercel pkgdesc = The command line interface for Vercel
pkgver = 19.0.1 pkgver = 19.0.1
pkgrel = 1 pkgrel = 2
url = https://github.com/zeit/now url = https://github.com/zeit/now
arch = any arch = any
license = MIT license = MIT

View file

@ -1,6 +1,6 @@
pkgname=vercel pkgname=vercel
pkgver=19.0.1 pkgver=19.0.1
pkgrel=1 pkgrel=2
pkgdesc="The command line interface for Vercel" pkgdesc="The command line interface for Vercel"
arch=(any) arch=(any)
url="https://github.com/zeit/now" url="https://github.com/zeit/now"
@ -14,10 +14,6 @@ sha256sums=('db57352f617064452a5c71b9c4272ec32d566a9ff5fd8ed8b610e9c754dca7b8')
# For more info about this package see: # For more info about this package see:
# https://wiki.archlinux.org/index.php/Node.js_package_guidelines # https://wiki.archlinux.org/index.php/Node.js_package_guidelines
package() { package() {
# If we don't unlink the binary the script below will fail to run
# https://github.com/zeit/now/blob/60c76b32902a73efaff75368e266ae9efac71eb0/packages/now-cli/scripts/preinstall.js
sudo unlink /usr/bin/vercel || true
npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz" npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
# Fix permissions # Fix permissions