summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a2b195d2afb6311d77b98e90be84c526a23e8d4 (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
_npmname=interactive-diff-patch
_npmver=0.0.6
pkgname=interactive-diff-patch # All lowercase
pkgver=0.0.6
pkgrel=1
pkgdesc="Allows you to apply diff hunks one at a time and preview them on the command line. On Windows this requires  git to be installed."
arch=(any)
url="https://gitlab.com/bixfliz/interactive-diff-patch"
license=(MIT)
depends=('nodejs' 'npm')
optdepends=()
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha1sums=(fb4919337e33ce2b73e07567bee42b749385d65f)

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
  find "${pkgdir}"/usr -type d -exec chmod 755 {} +
}

# vim:set ts=2 sw=2 et: