# Maintainer: Simon Legner pkgname=parcel-bundler pkgver=1.12.3 pkgrel=1 pkgdesc="Blazing fast, zero configuration web application bundler" arch=(any) url="https://parceljs.org/" license=('MIT') depends=('nodejs') makedepends=('npm') options=('!strip') source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) noextract=($pkgname-$pkgver.tgz) package() { cd $srcdir local _npmdir="$pkgdir/usr/lib/node_modules/" mkdir -p "$_npmdir" cd "$_npmdir" npm install -g --prefix "$pkgdir/usr" "$pkgname@$pkgver" install -Dm755 "$_npmdir/parcel-bundler/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" find "${pkgdir}"/usr -name package.json -exec sed -i '/"_where"/d' '{}' '+' find "${pkgdir}"/usr -type d -exec chmod 755 {} + } # vim:set ts=2 sw=2 et: sha256sums=('3f5137ddadb3e8975c167b10cce9a23e2e3604d3c9a12270d72d2f8ea4e08905')