blob: 937c91c9aa150dd693b5d8069a840585131aadb7 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
pkgbase=antora
pkgname=(
antora-cli
antora-site-generator
)
pkgver=3.1.10
pkgrel=1
pkgdesc="A modular documentation site generator"
arch=(any)
url="https://antora.org"
license=(MPL-2.0)
depends=(nodejs)
makedepends=(npm)
source=(
"$pkgbase-cli-$pkgver.tar.gz::https://registry.npmjs.org/@$pkgbase/cli/-/cli-$pkgver.tgz"
"$pkgbase-site-generator-$pkgver.tar.gz::https://registry.npmjs.org/@$pkgbase/site-generator/-/site-generator-$pkgver.tgz"
)
noextract=(
"cli-$pkgver.tgz"
"site-generator-$pkgver.tgz"
)
sha256sums=(
'ff712666713743b7a0ef53aa4fa605ed093963840d7a7cd214b37c585ba68a15'
'3f7d4adf33448a1e5b26c9c81796ce3f70f25e5ea5c12f044c22e6876b6a9c3b'
)
_package() {
local file="$1"
npm install --global \
--cache "$srcdir/npm-cache" \
--prefix "$pkgdir/usr" \
"$srcdir/$file"
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
}
package_antora-cli() {
_package "$pkgbase-cli-$pkgver.tar.gz"
}
package_antora-site-generator() {
_package "$pkgbase-site-generator-$pkgver.tar.gz"
}
|