# Maintainer: Luis Martinez # Contributor: Radoslaw Mejer pkgname=contentful-cli pkgver=1.9.15 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=('37731e68b3fe20b2613a77833197c21559b890154ebf5f5949ea25f2f77e628d') 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/" }