blob: bdbb09c88caedc8ae4825f5a22437c805198417e (
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
|
# Maintainer: Ian Emnace <igemnace@gmail.com>
pkgname=degit
pkgver=2.8.4
pkgrel=1
pkgdesc="Straightforward project scaffolding"
arch=('any')
url='https://github.com/Rich-Harris/degit'
license=('MIT')
depends=('nodejs>=8')
makedepends=('npm')
source=("http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz")
sha256sums=('2fa329afe68038c4c4d1542908503a4a09211d97f326b30a1c7422a8238203de')
package() {
npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
# Fix permissions
find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "/usr/lib/node_modules/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|