addpkg: nodemon

This commit is contained in:
MedzikUser 2022-05-22 21:50:04 +02:00
parent e671d3f182
commit bfffd32952
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
3 changed files with 29 additions and 2 deletions

View File

@ -2,10 +2,10 @@
_npmname='@angular/cli'
pkgname='angular-cli'
pkgver="13.3.6"
pkgrel=1
pkgrel=2
pkgdesc='CLI tool for Angular'
arch=('any')
url="https://www.npmjs.com/package/${pkgname}"
url="https://www.npmjs.com/package/${_npmname}"
license=('MIT')
depends=('nodejs')
makedepends=('npm')

26
packages/nodemon/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Maintainer: MedzikUser <nivua1fn@duck.com>
pkgname='nodemon'
pkgver="2.0.16"
pkgrel=1
pkgdesc='Simple monitor script for use during development of a Node.js app'
arch=('any')
url="https://www.npmjs.com/package/${pkgname}"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
_file="${pkgname}-${pkgver}.tgz"
source=("https://registry.npmjs.org/${pkgname}/-/${_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}"
}

View File

@ -0,0 +1 @@
NPM="nodemon"