blob: 3bfc9e83ef191eb353c6140c6f183b6dd58c39e0 (
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
|
# Maintainer: Christoph Stahl <christoph.stahl@tu-dortmund.de>
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
_npmname=pulp
pkgname=nodejs-$_npmname
pkgver=15.0.0
pkgrel=1
pkgdesc='A build system and package manager for PureScript projects.'
arch=('any')
url='https://github.com/purescript-contrib/pulp'
license=('LGPL3')
makedepends=('npm' 'jq')
depends=('nodejs' 'bower' 'purescript')
source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz"
"LICENSE")
noextract=($_npmname-$pkgver.tgz)
package() {
npm install -g --user root --prefix="$pkgdir/usr" "$srcdir/$_npmname-$pkgver.tgz"
find "$pkgdir/usr" -type d -exec chmod 755 {} +
find "$pkgdir" -type f -name package.json -print0 | xargs -0 sed -i "/_where/d"
local tmppackage="$(mktemp)"
local pkgjson="$pkgdir/usr/lib/node_modules/$_npmname/package.json"
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
mv "$tmppackage" "$pkgjson"
chmod 644 "$pkgjson"
chown root:root "$srcdir/LICENSE"
install -Dm 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums=('f989fe83a84e1de61483cc58dd68eba2'
'4aac21a733236e53f5f5db7120e91f6b')
|