mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
28 lines
822 B
Bash
28 lines
822 B
Bash
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
_npmname='@angular/cli'
|
|
pkgname='angular-cli'
|
|
pkgver="13.3.7"
|
|
pkgrel=2
|
|
pkgdesc='CLI tool for Angular'
|
|
arch=('any')
|
|
url="https://www.npmjs.com/package/${_npmname}"
|
|
license=('MIT')
|
|
depends=('nodejs')
|
|
makedepends=('npm')
|
|
_file="cli-${pkgver}.tgz"
|
|
source=("https://registry.npmjs.org/${_npmname}/-/${_file}")
|
|
noextract=("${_file}")
|
|
sha256sums=('b8641f8f270861023a0c37cc3f445969d27580687a1fbd8ccf822f55a48b8637')
|
|
|
|
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}"
|
|
}
|