-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
40 lines (35 loc) · 1.37 KB
/
PKGBUILD
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
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# [FixMe]: Add code to clean JavaScript code. see https://wiki.archlinux.org/title/Node.js_package_guidelines
# Maintainer: Ross Clark <archiv8@artisteducator.com>
# Contributor: Ross Clark <archiv8@artisteducator.com>
pkgname="jsdoc"
pkgver=3.6.10
pkgrel=3
pkgdesc="An API documentation generator for JavaScript"
url="https://github.com/jsdoc/jsdoc"
arch=("any")
license=("APACHE")
provides=("nodejs-jsdoc")
conflicts=("nodejs-jsdoc")
replaces=("nodejs-jsdoc")
depends=("nodejs")
makedepends=("npm")
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
sha512sums=("21d43ca694a8e4b299f68dccf8b28820af22d340c87b99ac0ef1b71bcd4a9bed5d872d17ace583d098bc1fad44960c848ff3bd2912e892029b00cf575fd08902")
build() {
cd "$srcdir/package"
npm --cache "$srcdir/npm-cache" install
npm pack
}
package() {
npm install -g --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "$srcdir/package/jsdoc-$pkgver.tgz"
chown -R root:root "$pkgdir/"*
}