summaryrefslogtreecommitdiff
path: root/devel/pnpm/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'devel/pnpm/MAKEPKG')
-rw-r--r--devel/pnpm/MAKEPKG35
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/pnpm/MAKEPKG b/devel/pnpm/MAKEPKG
new file mode 100644
index 0000000..4cf60bb
--- /dev/null
+++ b/devel/pnpm/MAKEPKG
@@ -0,0 +1,35 @@
+#!/bin/mkpkg
+# description: Fast, disk space efficient package manager for Node.js
+# url: https://pnpm.io/
+
+name=pnpm
+version=12.4.1
+release=1
+depends=(nodejs)
+makedeps=()
+source=(https://registry.npmjs.org/pnpm/-/pnpm-$version.tgz)
+sha256sums=(
+ "6276298e9af576b7a7f5e9044bfafbe2678209250cd10b1705ea5d3aa64d4882"
+)
+
+build() {
+ cd package
+
+ install -d $PKG/usr/lib/node_modules/pnpm
+ cp -r . $PKG/usr/lib/node_modules/pnpm/
+
+ install -d $PKG/usr/bin
+
+ rm -f "$PKG"/usr/lib/node_modules/pnpm/dist/node-gyp-bin/node-gyp.cmd
+
+ ln -sf ../lib/node_modules/pnpm/bin/pnpm.mjs $PKG/usr/bin/pnpm
+ ln -sf ../lib/node_modules/pnpm/bin/pnpx.mjs $PKG/usr/bin/pnpx
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh
+