~scrumplex/pkgbuilds

4be9e3c33a3af84e2c6c320917bebc0036a07c0f — Sefa Eyeoglu 2 months ago 9022be7
update to 2.0.1
2 files changed, 27 insertions(+), 26 deletions(-)

M .SRCINFO
M PKGBUILD
M .SRCINFO => .SRCINFO +5 -6
@@ 1,16 1,15 @@
pkgbase = parcel-bundler
	pkgdesc = Blazing fast, zero configuration web application bundler
	pkgver = 1.12.5
	pkgdesc = Zero configuration build tool for the web.
	pkgver = 2.0.1
	pkgrel = 1
	url = https://parceljs.org/
	arch = any
	license = MIT
	makedepends = npm
	depends = nodejs
	noextract = parcel-bundler-1.12.5.tgz
	noextract = parcel-2.0.1.tgz
	options = !strip
	source = https://registry.npmjs.org/parcel-bundler/-/parcel-bundler-1.12.5.tgz
	sha256sums = 2999bb924723fe5d33dea65361c5d235e79912f778b712f30382eb4e9d156406
	source = https://registry.npmjs.org/parcel/-/parcel-2.0.1.tgz
	sha256sums = 35c80bb6dd77413ae5b010e8f87612863cd303d60fb57b802e548791789917e9

pkgname = parcel-bundler


M PKGBUILD => PKGBUILD +22 -20
@@ 1,27 1,29 @@
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Contributor: Simon Legner <Simon.Legner@gmail.com>

pkgname=parcel-bundler
pkgver=1.12.5
_pkgname=parcel
pkgver=2.0.1
pkgrel=1
pkgdesc="Blazing fast, zero configuration web application bundler"
pkgdesc="Zero configuration build tool for the web."
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)
license=("MIT")
depends=("nodejs")
makedepends=("npm")
options=("!strip")
source=("https://registry.npmjs.org/$_pkgname/-/$_pkgname-$pkgver.tgz")
noextract=("$_pkgname-$pkgver.tgz")
sha256sums=('35c80bb6dd77413ae5b010e8f87612863cd303d60fb57b802e548791789917e9')


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=('2999bb924723fe5d33dea65361c5d235e79912f778b712f30382eb4e9d156406')
    npm install --cache "${srcdir}/npm-cache" -g --prefix "${pkgdir}/usr" "${srcdir}/${_pkgname}-${pkgver}.tgz"

    # npm gives ownership of ALL FILES to build user
    # https://bugs.archlinux.org/task/63396
    chown -R root:root "${pkgdir}"

    # TODO: deal with $srcdir $pkgdir in msgpackr-extract
}