Skip to content

Commit

Permalink
🎉 INIT: Initialize repository
Browse files Browse the repository at this point in the history
On branch main
  - Changes to be committed:
    - new file:   .SRCINFO
    - new file:   PKGBUILD
  • Loading branch information
rossclarkartist committed Mar 29, 2022
0 parents commit 7653c07
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .SRCINFO
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
37 changes: 37 additions & 0 deletions PKGBUILD
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 <[email protected]>
# Contributor: Ross Clark <[email protected]>

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/"*
}

0 comments on commit 7653c07

Please sign in to comment.