Skip to content

Instantly share code, notes, and snippets.

@lygaret
Created February 21, 2017 19:22
Show Gist options
  • Select an option

  • Save lygaret/f080d12717e50e671a32f3498d1be59f to your computer and use it in GitHub Desktop.

Select an option

Save lygaret/f080d12717e50e671a32f3498d1be59f to your computer and use it in GitHub Desktop.

Revisions

  1. lygaret created this gist Feb 21, 2017.
    21 changes: 21 additions & 0 deletions PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    _npmname=npm2arch
    _npmver=0.1.19
    pkgname=nodejs-npm2arch-updated-deps-git # All lowercase
    pkgver=0.1.19
    pkgrel=2
    pkgdesc="Convert NPM package to a PKGBUILD for ArchLinux, patched for recent dependencies."
    arch=(any)
    url="https://github.com/Filirom1/npm2arch"
    license=(MIT)
    depends=('nodejs' 'npm' )
    optdepends=()
    conflicts=(nodejs-npm2arch)
    source=(git+https://github.com/MazeChaZer/npm2arch.git#branch=feature/upgrade-dependencies)
    md5sums=('SKIP')

    # vim:set ts=2 sw=2 et:
    package() {
    cd $srcdir
    cd $_npmname
    npm install -g --prefix "$pkgdir/usr"
    }