[Buildroot] [git commit branch/next] package/vuejs-router: new package

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Sun Aug 29 16:27:10 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=62b135af5e1e2ad9ea38e33125b40b3ed074cf57
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Vue Router is the official router for Vue.js.

Signed-off-by: Thomas Claveirole <thomas.claveirole at green-communications.fr>
[Arnout: use comment instead of submenu]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 DEVELOPERS                             |  1 +
 package/Config.in                      |  4 ++++
 package/vuejs-router/Config.in         |  6 ++++++
 package/vuejs-router/vuejs-router.hash |  3 +++
 package/vuejs-router/vuejs-router.mk   | 19 +++++++++++++++++++
 5 files changed, 33 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 31bcd27747..66c5a6703c 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2568,6 +2568,7 @@ F:	package/x265/
 N:	Thomas Claveirole <thomas.claveirole at green-communications.fr>
 F:	package/fcgiwrap/
 F:	package/openlayers/
+F:	package/vuejs-router/
 
 N:	Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
 F:	docs/manual/
diff --git a/package/Config.in b/package/Config.in
index 2dc105defa..2dbe511de0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1639,6 +1639,10 @@ endif
 	source "package/openlayers/Config.in"
 	source "package/popperjs/Config.in"
 	source "package/vuejs/Config.in"
+if BR2_PACKAGE_VUEJS
+comment "External Vue.js plugins"
+	source "package/vuejs-router/Config.in"
+endif
 endmenu
 
 menu "JSON/XML"
diff --git a/package/vuejs-router/Config.in b/package/vuejs-router/Config.in
new file mode 100644
index 0000000000..ac79b3ea61
--- /dev/null
+++ b/package/vuejs-router/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_VUEJS_ROUTER
+	bool "vuejs-router"
+	help
+	  The official router for Vue.js.
+
+	  http://router.vuejs.org
diff --git a/package/vuejs-router/vuejs-router.hash b/package/vuejs-router/vuejs-router.hash
new file mode 100644
index 0000000000..62b16505ea
--- /dev/null
+++ b/package/vuejs-router/vuejs-router.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  d85cb70686cad36a087ad9586f1839c9997f707eb0065445fb1ea3d9218494f6  vue-router-4.0.10.tgz
+sha256  9c0015250f592a09d7787efc07152afcf661fff6bda2554359f6d00987828c02  LICENSE
diff --git a/package/vuejs-router/vuejs-router.mk b/package/vuejs-router/vuejs-router.mk
new file mode 100644
index 0000000000..60e751e1d1
--- /dev/null
+++ b/package/vuejs-router/vuejs-router.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# vuejs-router
+#
+################################################################################
+
+VUEJS_ROUTER_VERSION = 4.0.10
+VUEJS_ROUTER_SOURCE = vue-router-$(VUEJS_ROUTER_VERSION).tgz
+VUEJS_ROUTER_SITE = https://registry.npmjs.org/vue-router/-
+VUEJS_ROUTER_LICENSE = MIT
+VUEJS_ROUTER_LICENSE_FILES = LICENSE
+
+# Install .prod.js as .js
+define VUEJS_ROUTER_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 644 -D $(@D)/dist/vue-router.global.prod.js \
+		$(TARGET_DIR)/var/www/vue-router.js
+endef
+
+$(eval $(generic-package))


More information about the buildroot mailing list