-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On branch main - Changes to be committed: - new file: .SRCINFO - new file: PKGBUILD
- Loading branch information
0 parents
commit 7653c07
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
pkgbase = nodejs-jsdoc | ||
pkgdesc = An API documentation generator for JavaScript | ||
pkgver = 3.6.7 | ||
pkgrel = 1 | ||
url = https://github.com/jsdoc3/$_name | ||
arch = any | ||
license = APACHE | ||
makedepends = npm | ||
depends = nodejs | ||
source = https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.7.tgz | ||
sha256sums = c081fb764e73565c2fbc5cfb559c3d0a6a3d82d337dcf146ece76a2ea17b99b8 | ||
|
||
pkgname = nodejs-jsdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/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=1 | ||
pkgdesc="An API documentation generator for JavaScript" | ||
url="https://github.com/jsdoc3/$pkgname" | ||
arch=("any") | ||
license=("APACHE") | ||
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/"* | ||
} |