summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--.editorconfig12
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD29
-rwxr-xr-xcreate-next-app3
5 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9a48867d22a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = create-next-app
+ pkgdesc = Create Next.js-powered React apps with one command.
+ pkgver = 11.0.1
+ pkgrel = 1
+ url = https://www.npmjs.com/package/create-next-app
+ arch = any
+ license = MIT
+ source = https://registry.npmjs.org/create-next-app/-/create-next-app-11.0.1.tgz
+ source = create-next-app
+ sha256sums = b8cc850ed3bfaa5d0b6f22cebe755bac50bf6a1e2fa6052844c58eae3db217d4
+ sha256sums = SKIP
+
+pkgname = create-next-app
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..5d47c21c4e1
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,12 @@
+# EditorConfig is awesome: https://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..de60f84ce31
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg
+/src
+/create-next-app-*.tgz
+/create-next-app-*.pkg.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..61438131557
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: André Kugland <kugland at gmail dot com>
+
+pkgname=create-next-app
+pkgver=11.0.1
+pkgrel=1
+pkgdesc='Create Next.js-powered React apps with one command.'
+arch=(any)
+url='https://www.npmjs.com/package/create-next-app'
+license=('MIT')
+source=(
+ "https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
+ 'create-next-app'
+)
+sha256sums=(
+ 'b8cc850ed3bfaa5d0b6f22cebe755bac50bf6a1e2fa6052844c58eae3db217d4'
+ 'SKIP'
+)
+
+package() {
+ cd "$srcdir"
+ install -o0 -g0 -m755 ../create-next-app -D -t "$pkgdir/usr/bin"
+
+ cd "$srcdir/package"
+ mkdir -p "$pkgdir/usr/share/create-next-app"
+ cp -r dist/* "$pkgdir/usr/share/create-next-app/"
+ chown -R root:root "$pkgdir/usr/share/create-next-app/"
+ install -o0 -g0 -m644 license.md -D -t "$pkgdir/usr/share/doc/create-next-app"
+ install -o0 -g0 -m644 README.md -D -t "$pkgdir/usr/share/doc/create-next-app"
+}
diff --git a/create-next-app b/create-next-app
new file mode 100755
index 00000000000..d4e1dd864ff
--- /dev/null
+++ b/create-next-app
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec node /usr/share/create-next-app/index.js "$@"