blob: 03fcb35b62cf701e8ab1c9304d0605ba09846ee2 (
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: mutantmonkey <aur@mutantmonkey.mx>
# Contributor: Boudhayan Gupta <bgupta@kde.org>
_npmname=netlify-cli
_npmver=3.37.16
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')
makedepends=('npm')
license=('MIT')
options=('!strip')
source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${_npmver}.tgz")
noextract=("${_npmname}-${_npmver}.tgz")
sha256sums=('2c98d5a7a8a8b5647efdccf7877b468d3ad6d1b150fb5c91162876c7ddc22f67')
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 {} +
}
|