blob: 044667f73776cd2c06bf9af288da0705f7f03724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Andrew Simmons <agsimmons0 at gmail dot com>
pkgname=redocly
pkgver='1.28.0'
pkgrel=1
pkgdesc="Redocly CLI toolbox with rich validation and bundling features"
arch=('any')
url="https://github.com/Redocly/redoc"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
options=('!strip')
source=(
"$pkgname-$pkgver.tar.gz::https://registry.npmjs.org/@redocly/cli/-/cli-${pkgver}.tgz"
)
sha256sums=(
'66e2cfc550feaa40017c927fb0e83c51fcbde6a8f6d7bbd3befe0806c952c80c'
)
noextract=("${pkgname}-${pkgver}.tar.gz")
package() {
npm install -g --prefix "${pkgdir}/usr" "${pkgname}-${pkgver}.tar.gz"
# 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}"
}
|