mirror of https://github.com/built-aur/packages
27 lines
815 B
Bash
27 lines
815 B
Bash
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
pkgname='pnpm'
|
|
pkgver="8.6.8"
|
|
pkgrel=1
|
|
pkgdesc='Fast, disk space efficient package manager'
|
|
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=('0adb3bba1a065896feb4406c489f83f09b5e0c61ce35cde42d5e7e57fae22b79')
|
|
|
|
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}"
|
|
}
|