summaryrefslogtreecommitdiff
path: root/devel/yarn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/yarn')
-rw-r--r--devel/yarn/.footprint16
-rw-r--r--devel/yarn/.signature6
-rw-r--r--devel/yarn/MAKEPKG45
3 files changed, 67 insertions, 0 deletions
diff --git a/devel/yarn/.footprint b/devel/yarn/.footprint
new file mode 100644
index 0000000..2e864e8
--- /dev/null
+++ b/devel/yarn/.footprint
@@ -0,0 +1,16 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/yarn -> ../lib/node_modules/yarn/bin/yarn.js
+lrwxrwxrwx root/root usr/bin/yarnpkg -> ../lib/node_modules/yarn/bin/yarn.js
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/node_modules/
+drwxr-xr-x root/root usr/lib/node_modules/yarn/
+-rw-r--r-- root/root usr/lib/node_modules/yarn/LICENSE
+-rw-r--r-- root/root usr/lib/node_modules/yarn/package.json
+drwxr-xr-x root/root usr/lib/node_modules/yarn/bin/
+-rwxr-xr-x root/root usr/lib/node_modules/yarn/bin/yarn
+-rwxr-xr-x root/root usr/lib/node_modules/yarn/bin/yarn.js
+-rwxr-xr-x root/root usr/lib/node_modules/yarn/bin/yarnpkg
+drwxr-xr-x root/root usr/lib/node_modules/yarn/lib/
+-rwxr-xr-x root/root usr/lib/node_modules/yarn/lib/cli.js
+-rw-r--r-- root/root usr/lib/node_modules/yarn/lib/v8-compile-cache.js
diff --git a/devel/yarn/.signature b/devel/yarn/.signature
new file mode 100644
index 0000000..137f35e
--- /dev/null
+++ b/devel/yarn/.signature
@@ -0,0 +1,6 @@
+RWTZ9IduCSQ/mAtiUV8NXD/yGWEmHLssN9QDKoTyW0Yo1o/qvk2VQp3c2WN2s1kT1ZABB7ZzfArugBDqlyWqU1vCxuqihSjWGQ0=
+
+SHA256 (MAKEPKG) = 16172f85f52a1d805d28926d0910a168a7388c6264d36ff52bfceae243e69786
+SHA256 (.footprint) = 7810c48df0239d83c7351865996382c2dbc671e78a18b430af031434d44c1b82
+SHA256 (yarn-1.22.22.tgz) = c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca
+SHA256 (yarn#1.22.22-1.pkg.tar.gz) = cbd362ffd2a4326e156ab6aa4070fd8be3a20ffbc1c252de8a6bba8cf34d4d0e
diff --git a/devel/yarn/MAKEPKG b/devel/yarn/MAKEPKG
new file mode 100644
index 0000000..37e90ff
--- /dev/null
+++ b/devel/yarn/MAKEPKG
@@ -0,0 +1,45 @@
+#!/bin/mkpkg
+# description: Fast, reliable, and secure dependency management for JavaScript
+# url: https://classic.yarnpkg.com/
+
+# Note: this is yarn 1.x (classic), the line that reads the yarn.lock v1 format
+# used by ports such as gotify. It ships as a single webpacked lib/cli.js with
+# no dependencies of its own, so it needs neither a compiler nor npm to
+# install.
+
+name=yarn
+version=1.22.22
+release=1
+depends=(nodejs)
+source=(https://registry.npmjs.org/$name/-/$name-$version.tgz)
+sha256sums=(
+ "c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
+)
+
+build() {
+ # Registry tarballs always unpack into a directory called "package"
+ cd package
+
+ # Windows launchers, and the npm lifecycle hook that warns when yarn is
+ # installed through npm - neither applies here
+ rm -f bin/yarn.cmd bin/yarnpkg.cmd
+ rm -f preinstall.js
+
+ install -d $PKG/usr/lib/node_modules/yarn
+ cp -a bin lib package.json LICENSE $PKG/usr/lib/node_modules/yarn/
+
+ chmod 755 $PKG/usr/lib/node_modules/yarn/bin/yarn.js
+ chmod 755 $PKG/usr/lib/node_modules/yarn/bin/yarn
+ chmod 755 $PKG/usr/lib/node_modules/yarn/bin/yarnpkg
+
+ install -d $PKG/usr/bin
+ ln -sf ../lib/node_modules/yarn/bin/yarn.js $PKG/usr/bin/yarn
+ ln -sf ../lib/node_modules/yarn/bin/yarn.js $PKG/usr/bin/yarnpkg
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh