mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
29 lines
934 B
Bash
29 lines
934 B
Bash
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
_pkgname='netlify-cli'
|
|
pkgname='netlify'
|
|
provides=("${pkgname}-cli")
|
|
conflicts=("${pkgname}-cli")
|
|
pkgver="15.0.2"
|
|
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/"
|
|
license=('MIT')
|
|
depends=('nodejs')
|
|
makedepends=('npm')
|
|
_file="${_pkgname}-${pkgver}.tgz"
|
|
source=("https://registry.npmjs.org/${_pkgname}/-/${_file}")
|
|
noextract=("$_file")
|
|
sha256sums=('24a89d948897ccbbffbac68238e4754a62a947e3972afe8368c5c095be0c265a')
|
|
|
|
package() {
|
|
npm install -g --prefix "${pkgdir}/usr" "${_file}"
|
|
|
|
# Non-deterministic race in npm gives 777 permissions to random directories.
|
|
# See https://github.com/npm/npm/issues/9359 for details.
|
|
chmod -R u=rwX,go=rX "${pkgdir}"
|
|
|
|
# npm installs package.json owned by build user
|
|
# https://bugs.archlinux.org/task/63396
|
|
chown -R root:root "${pkgdir}"
|
|
}
|