summaryrefslogtreecommitdiff
path: root/devel/pnpm/MAKEPKG
blob: 4cf60bbfb7765fc85141edd7c29452989ea8c009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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