diff options
author | Adam Goldsmith | 2019-09-15 17:48:42 -0400 |
---|---|---|
committer | Adam Goldsmith | 2019-09-15 17:48:42 -0400 |
commit | 627a4e3e87fb6c94d4eb0a6f3f52b330887484d6 (patch) | |
tree | 66513a9637da5e40891c936d5184c7a56b46be21 /PKGBUILD | |
download | aur-627a4e3e87fb6c94d4eb0a6f3f52b330887484d6.tar.gz |
Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a2b5337b2593 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name> + +_npmname=intelephense +pkgname=nodejs-$_npmname +pkgver=1.2.3 +pkgrel=1 +pkgdesc="Intelephense is a PHP language server adhering to the Language Server Protocol." +arch=('any') +url="https://github.com/bmewburn/vscode-intelephense" +license=('MIT') +depends=(nodejs) +makedepends=(npm) +source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) +sha256sums=('7c621bd9ce7c217d45ad558b34d741034d890431fc8001400960fea8d58418d1') +noextract=($_npmname-$pkgver.tgz) + +package() { + npm install \ + --user root --global \ + --prefix "$pkgdir/usr" \ + "$srcdir"/$_npmname-$pkgver.tgz + + find "$pkgdir/usr" -type d -exec chmod 755 '{}' + + chown -R root:root "$pkgdir" +} |