diff options
author | Sainnhepark | 2020-10-23 12:14:40 +0800 |
---|---|---|
committer | Sainnhepark | 2020-10-23 12:14:40 +0800 |
commit | 9d34860429d4c7fe746ca09db8c2b4ca081a216e (patch) | |
tree | 5204f31649e6dec3b9bc67781632252031f0f41b | |
parent | 1ecc751625c2561372f12e8b76e8b45afbb1a939 (diff) | |
download | aur-9d34860429d4c7fe746ca09db8c2b4ca081a216e.tar.gz |
add license
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 8 insertions, 6 deletions
@@ -1,10 +1,10 @@ pkgbase = vim-coc-clangd-git pkgdesc = C/C++/ObjC support for coc.nvim (powered by clangd) - pkgver = r102.fd082e5 + pkgver = r116.a3650f2 pkgrel = 1 url = https://github.com/clangd/coc-clangd arch = any - license = + license = Apache makedepends = yarn makedepends = npm makedepends = git @@ -11,9 +11,9 @@ conflicts=("${_variant}-${_extname}") arch=('any') depends=("${_variant}-coc" 'clang') makedepends=('yarn' 'npm' 'git') -license=('') +license=('Apache') source=("${_extname}::git+${url}.git") -pkgver=r102.fd082e5 +pkgver=r116.a3650f2 pkgrel=1 sha256sums=('SKIP') @@ -24,12 +24,12 @@ pkgver() { build() { cd "${srcdir}/${_extname}" - yarn install --frozen-lockfile + yarn install --frozen-lockfile --preferred-cache-folder "${srcdir}/.cache/yarn" yarn pack tar xvf *.tgz rm *.tgz cd package - npm install --only=production --no-lockfile --ignore-scripts + npm install --only=production --no-lockfile --ignore-scripts --cache "${srcdir}/.cache/npm" } package() { @@ -37,4 +37,6 @@ package() { find . -type f -exec \ install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \; rm -rf "${srcdir}/${_extname}/package" + find "$pkgdir" -name package.json -print0 | xargs -r -0 sed -i '/_where/d' + chown -R root:root "${pkgdir}" } |