blob: 50d49a4a515e55b083a275af4f00d9e33824053b (
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
|
# Maintainer: Stefan Auditor <stefan@auditor.email>
pkgname=solid-shell
pkgver=2.0.25
pkgrel=1
pkgdesc="A command-line tool, batch processor, and interactive shell for managing Solid data"
arch=(any)
url="https://www.npmjs.com/package/solid-shell"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
md5sums=('a96198ee557f8cf9e50d8dd02da8b86c')
noextract=($pkgname-$pkgver.tgz)
options=(!strip)
package() {
cd ${srcdir}
local _npmdir="${pkgdir}/usr/lib/node_modules/"
mkdir -p ${_npmdir}
cd ${_npmdir}
npm install -g --prefix "${pkgdir}/usr" ${pkgname}@${pkgver}
find "${pkgdir}"/usr -name package.json -exec sed -i '/"_where"/d' '{}' '+'
find "${pkgdir}"/usr -type d -exec chmod 755 {} +
}
|