# Maintainer: Bernardo Kuri # Contributor: Luis Martinez # Contributor: Simon Legner pkgname=rollup pkgver=4.13.0 pkgrel=2 arch=('any') depends=('nodejs') license=('MIT') makedepends=('npm') noextract=("${pkgname}-${pkgver}.tgz") options=('!emptydirs') pkgdesc="Next-generation ES6 module bundler" sha256sums=('36725834e9e38f0b2974adca080c005aa95ade9da163e00ef6c1a0ec38b5309e') source=("${pkgname}-${pkgver}.tgz::https://registry.npmjs.org/${pkgname}/-/${pkgname}-${pkgver}.tgz") url="https://rollupjs.org/" package() { export NODE_ENV='production' npm install -g \ --cache "${srcdir}/npm-cache" \ --prefix "${pkgdir}/usr" \ "${pkgname}-${pkgver}.tgz" chown -R root:root "${pkgdir}/" install -dv "${pkgdir}/usr/share/licenses/${pkgname}/" "${pkgdir}/usr/share/doc/${pkgname}/" ln -sv "/usr/lib/node_modules/${pkgname}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" ln -sv "/usr/lib/node_modules/${pkgname}/README.md" -t "${pkgdir}/usr/share/doc/${pkgname}/" }