blob: 145e3f4b5dafdf7cb403134278553947dc9f93ee (
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: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Simon Legner <Simon.Legner@gmail.com>
pkgname=wikibase-cli
pkgver=15.15.6
pkgrel=1
pkgdesc="Command-line interface to Wikibase instances"
arch=('any')
url="https://github.com/maxlath/wikibase-cli"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
replaces=('nodejs-wikibase-cli')
source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz")
sha256sums=('725ef2956df3faf8f369d1480628e829016ba4ddfcf58d9069dbc200cfb344d8')
package() {
export NODE_ENV=production
npm install -g \
--cache "$srcdir/npm-cache" \
--prefix "$pkgdir/usr" \
--build-from-source \
"$pkgname-$pkgver.tgz"
chown -R root:root "$pkgdir/"
install -d $pkgdir/usr/share/{licenses,doc}/$pkgname/
ln -s /usr/lib/node_modules/wikibase-cli/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
ln -s /usr/lib/node_modules/wikibase-cli/README.md "$pkgdir/usr/share/doc/$pkgname/"
}
# vim:set ts=2 sw=2 et:
|