diff --git a/packages/angular-cli/PKGBUILD b/packages/angular-cli/PKGBUILD new file mode 100644 index 00000000..307b30e4 --- /dev/null +++ b/packages/angular-cli/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: MedzikUser +_npmname='@angular/cli' +pkgname='angular-cli' +pkgver="13.3.6" +pkgrel=1 +pkgdesc='CLI tool for Angular' +arch=('any') +url="https://www.npmjs.com/package/${pkgname}" +license=('MIT') +depends=('nodejs') +makedepends=('npm') +_file="cli-${pkgver}.tgz" +source=("https://registry.npmjs.org/${_npmname}/-/${_file}") +noextract=("${_file}") +sha256sums=('SKIP') + +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}" +} diff --git a/packages/angular-cli/built.conf b/packages/angular-cli/built.conf new file mode 100644 index 00000000..adcb09cb --- /dev/null +++ b/packages/angular-cli/built.conf @@ -0,0 +1 @@ +NPM="@angular/cli"