summaryrefslogtreecommitdiff
path: root/repo/yarn/yarn.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/yarn/yarn.xibuild
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/yarn/yarn.xibuild')
-rw-r--r--repo/yarn/yarn.xibuild24
1 files changed, 24 insertions, 0 deletions
diff --git a/repo/yarn/yarn.xibuild b/repo/yarn/yarn.xibuild
new file mode 100644
index 0000000..900a18f
--- /dev/null
+++ b/repo/yarn/yarn.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="yarn"
+DESC="Fast, reliable, and secure dependency management for Node.js"
+
+MAKEDEPS=""
+
+PKG_VER=1.22.18
+SOURCE="https://yarnpkg.com/downloads/$PKG_VER/yarn-v$PKG_VER.tar.gz"
+
+package() {
+ local destdir="usr/share/node_modules/yarn"
+
+ mkdir -p "$PKG_DEST"/$destdir
+ cp -R "$BUILD_ROOT"/* "$PKG_DEST"/$destdir/
+
+ # Remove windows specific files.
+ rm "$PKG_DEST"/$destdir/bin/*.cmd
+
+ mkdir -p "$PKG_DEST"/usr/bin
+ ln -s /$destdir/bin/yarn "$PKG_DEST"/usr/bin/yarn
+ ln -s /$destdir/bin/yarn "$PKG_DEST"/usr/bin/yarnpkg
+}
+