summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD22
3 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c8669ee8d05
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nodejs-esformatter-jsx
+ pkgdesc = format javascript files that contain React JSX blocks
+ pkgver = 1.3.0
+ pkgrel = 1
+ url = https://github.com/royriojas/esformatter-jsx
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+ noextract = esformatter-jsx-1.3.0.tgz
+ source = https://registry.npmjs.org/esformatter-jsx/-/esformatter-jsx-1.3.0.tgz
+ sha256sums = c52761456e03d10cfcab1984bd853c974e74978759e4469346e9c98f9766670a
+
+pkgname = nodejs-esformatter-jsx
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e9866891f8a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tgz
+*.xz
+pkg
+src
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5c5dae512b6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Carlo Cabanilla <carlo.cabanilla@gmail.com>
+
+_npmname=esformatter-jsx
+pkgname=nodejs-$_npmname
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="format javascript files that contain React JSX blocks"
+arch=(any)
+url=https://github.com/royriojas/esformatter-jsx
+license=(MIT)
+depends=('nodejs' 'npm')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('c52761456e03d10cfcab1984bd853c974e74978759e4469346e9c98f9766670a')
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}