diff options
author | Sainnhepark | 2020-10-23 16:42:13 +0800 |
---|---|---|
committer | Sainnhepark | 2020-10-23 16:42:13 +0800 |
commit | 0d67bd73e0c73d034166427377e6d346306953b6 (patch) | |
tree | 53fef6d84e5daa927a8713bad4549345c5851b53 | |
parent | daadf9f055aab6f447617e273bea22f2a957a004 (diff) | |
download | aur-0d67bd73e0c73d034166427377e6d346306953b6.tar.gz |
add license
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -6,7 +6,7 @@ pkgbase = neovim-coc-marketplace-git install = neovim-coc-marketplace-git.install arch = any groups = neovim-coc-extras-git - license = + license = MIT makedepends = git makedepends = yarn makedepends = npm @@ -10,7 +10,7 @@ url='https://github.com/fannheyward/coc-marketplace' depends=('neovim-coc') makedepends=('git' 'yarn' 'npm') _packdir="usr/local/share/nvim/site/pack/coc/start/${_extname}" -license=('') +license=('MIT') groups=('neovim-coc-extras-git') provides=("${_pkgname}") conflicts=("${_pkgname}") @@ -27,12 +27,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() { @@ -40,4 +40,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}" } |