blob: 210788a951b655e237874d6c0c3655ecf902e490 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: macxcool <macxcool at tutanota dot com>
# Contributor: mutantmonkey <aur@mutantmonkey.mx>
# Contributor: Boudhayan Gupta <bgupta@kde.org>
_npmname=netlify-cli
_npmver=17.38.0
pkgname=netlify
pkgver=${_npmver}
pkgrel=1
pkgdesc="Create, deploy, and delete new sites hosted on Netlify straight from your terminal"
arch=(any)
url="https://www.netlify.com/docs/cli/"
depends=('nodejs' 'npm')
license=('MIT')
options=('!strip')
source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${_npmver}.tgz")
noextract=("${_npmname}-${_npmver}.tgz")
sha256sums=('3fae47e1eb3572918f9ff90471c3a18e391f6fdcd3878352fec6a229162b7b66')
package() {
cd ${srcdir}
local _npmdir="${pkgdir}/usr/lib/node_modules/"
mkdir -p ${_npmdir}
cd ${_npmdir}
npm install -g --prefix "${pkgdir}/usr" ${_npmname}@${_npmver}
# Fix file ownership and permissions
chown -R 0:0 "${pkgdir}/usr"
find "${pkgdir}/usr" -perm -o+w,g+w -exec chmod o-w,g-w {} +
}
|