packages/packages/angular-cli/PKGBUILD

28 lines
822 B
Bash
Raw Permalink Normal View History

2022-05-22 19:14:02 +00:00
# Maintainer: MedzikUser <nivua1fn@duck.com>
_npmname='@angular/cli'
pkgname='angular-cli'
2023-08-04 19:10:53 +00:00
pkgver="16.1.8"
2022-06-15 11:15:50 +00:00
pkgrel=1
2022-05-22 19:14:02 +00:00
pkgdesc='CLI tool for Angular'
arch=('any')
2022-05-22 19:50:04 +00:00
url="https://www.npmjs.com/package/${_npmname}"
2022-05-22 19:14:02 +00:00
license=('MIT')
depends=('nodejs')
makedepends=('npm')
_file="cli-${pkgver}.tgz"
source=("https://registry.npmjs.org/${_npmname}/-/${_file}")
noextract=("${_file}")
2023-08-04 19:10:53 +00:00
sha256sums=('4e09929c76b8b4e897f8e66f79a08aa809e2f1961f33daa0f85fc1c2f9fa19a9')
2022-05-22 19:14:02 +00:00
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}"
}