# Maintainer: Luis Martinez # Contributor: Radoslaw Mejer pkgname=contentful-cli pkgver=1.9.19 pkgrel=1 pkgdesc="The official Contentful command line interface" arch=('any') license=('MIT') url="https://github.com/contentful/contentful-cli" depends=('nodejs') makedepends=('npm') source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") noextract=("$pkgname-$pkgver.tgz") sha256sums=('f091b38d44c986dad9c64ed5657e4997526c7146c130cbbde39632e856187142') package() { export NODE_ENV=production npm install -g --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "$pkgname-$pkgver.tgz" install -d "$pkgdir/usr/share/licenses/$pkgname/" "$pkgdir/usr/share/doc/$pkgname/" ln -s /usr/lib/node_modules/contentful-cli/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/" ln -s /usr/lib/node_modules/contentful-cli/README.md "$pkgdir/usr/share/doc/$pkgname/" chown -R root:root "$pkgdir/" }