mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
26 lines
818 B
Bash
26 lines
818 B
Bash
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
pkgname='firebase-tools'
|
|
pkgver="11.18.0"
|
|
pkgrel=1
|
|
pkgdesc='The Firebase Command Line Tools'
|
|
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=('4f972414c9fa0e2918a4a8c66e8437771b58bf94b9399158d1a685f2948d8009')
|
|
|
|
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}"
|
|
}
|