# Maintainer: Simon Legner # Contributor: Marcs pkgname=lerna pkgver=3.16.1 pkgrel=1 pkgdesc="Tool for managing JavaScript projects with multiple packages" arch=(any) url="https://github.com/sebmck/lerna#readme" license=('MIT') depends=('nodejs') makedepends=('npm') source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) noextract=($pkgname-$pkgver.tgz) options=(!strip) package() { cd ${srcdir} local _npmdir="${pkgdir}/usr/lib/node_modules/" mkdir -p ${_npmdir} cd ${_npmdir} npm install -g --prefix "${pkgdir}/usr" ${pkgname}@${pkgver} find "${pkgdir}"/usr -name package.json -exec sed -i '/"_where"/d' '{}' '+' find "${pkgdir}"/usr -type d -exec chmod 755 {} + } sha256sums=('da505032d6e3d093d1ce7838d073095d0da5831dfcda41de24a16aac6dd824f3')