blob: 1e49536d50002dadbd2e4ebfaca6219728013f4f (
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: Georg Nagel <g.schlmm at gmail dot com>
_npmname=@gltf-transform/cli
pkgname=nodejs-gltf-transform-cli
pkgver="4.1.1"
pkgrel=1
pkgdesc="CLI interface to glTF Transform"
arch=(any)
url="https://gltf-transform.donmccurdy.com/"
license=(MIT)
depends=(nodejs)
makedepends=(npm)
source=("${pkgname}-${pkgver}.tgz::http://registry.npmjs.org/${_npmname}/-/cli-${pkgver}.tgz")
noextract=("${pkgname}-${pkgver}.tgz")
sha256sums=("4c0263cdabf4ec48965e8e3dc7928a7452eaeef391b88cc5f9040563a8065174")
package() {
# copied from: nodejs-nativefier
npm install -g --cache "${srcdir}/npm-cache" --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
# Fixing permissions
find "$pkgdir"/usr -type d -exec chmod 755 {} +
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "${pkgdir}"
install -Dm644 "$pkgdir/usr/lib/node_modules/${_npmname}/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
|