# Description: A small, fast, JavaScript-based JavaScript parser
# URL: https://github.com/acornjs/acorn
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: npm

name=acorn
version=8.10.0
release=1
source=(https://registry.npmjs.org/$name/-/$name-$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 "*LICENSE*" \) -delete
}
