~scrumplex/pkgbuilds

2d45852fced22f136937ddd1e08cdb885dac08b0 — Sefa Eyeoglu 2 months ago f97ca41 + 4be9e3c
Add 'parcel-bundler/' from commit '4be9e3c33a3af84e2c6c320917bebc0036a07c0f'

git-subtree-dir: parcel-bundler
git-subtree-mainline: f97ca419ca9840a15cec76e03ba5c0ddf2651cf3
git-subtree-split: 4be9e3c33a3af84e2c6c320917bebc0036a07c0f
2 files changed, 44 insertions(+), 0 deletions(-)

A parcel-bundler/.SRCINFO
A parcel-bundler/PKGBUILD
A parcel-bundler/.SRCINFO => parcel-bundler/.SRCINFO +15 -0
@@ 0,0 1,15 @@
pkgbase = parcel-bundler
	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-2.0.1.tgz
	options = !strip
	source = https://registry.npmjs.org/parcel/-/parcel-2.0.1.tgz
	sha256sums = 35c80bb6dd77413ae5b010e8f87612863cd303d60fb57b802e548791789917e9

pkgname = parcel-bundler

A parcel-bundler/PKGBUILD => parcel-bundler/PKGBUILD +29 -0
@@ 0,0 1,29 @@
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Contributor: Simon Legner <Simon.Legner@gmail.com>

pkgname=parcel-bundler
_pkgname=parcel
pkgver=2.0.1
pkgrel=1
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")
sha256sums=('35c80bb6dd77413ae5b010e8f87612863cd303d60fb57b802e548791789917e9')


package() {

    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
}