Skip to content

Commit

Permalink
Update package version to '8.18.0-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
kavplex committed Sep 20, 2023
1 parent 48b562e commit 0936306
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: Hunter Wittenborn <[email protected]>
_pkgname='cli'
pkgname=npm
pkgver=8.18.0
pkgrel=1
pkgdesc='A JavaScript package manager'
arch=('all')
depends=('nodejs')
makedepends=('git')
url='https://docs.npmjs.com/cli'

source=("${_pkgname}-${pkgver}::git+https://github.com/npm/${_pkgname}/#tag=v${pkgver}")
sha256sums=('SKIP')

build() {
cd "${_pkgname}-${pkgver}/"
NODE_PATH=/usr/lib/node_modules make
}

package() {
cd "${_pkgname}-${pkgver}/"
node . install -g --prefix="${pkgdir}/usr" "$(node . pack |& tail -1)"
node . completion | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
}

# vim: set sw=4 expandtab:

0 comments on commit 0936306

Please sign in to comment.