# Description: Fast, disk space efficient package manager
# URL: https://pnpm.io/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: npm

name=pnpm
version=8.6.12
release=1
source=(https://registry.npmjs.org/pnpm/-/pnpm-$version.tgz)

build() {
  cp $PKGMK_SOURCE_DIR/$name-$version.tgz .

  npm install -g --prefix "$PKG"/usr $SRC/$name-$version.tgz

  find $PKG \(\
    -iname "*README.md*" -o \
    -iname "*CHANGELOG.md*" -o \
    -iname "*.map" -o \
    -iname "*.md" -o \
    -iname "*.cmd" -o \
    -iname "*.bat" -o \
    -iname "*LICENSE*" \) -delete
}
