diff options
author | Sainnhepark | 2020-10-23 16:39:56 +0800 |
---|---|---|
committer | Sainnhepark | 2020-10-23 16:39:56 +0800 |
commit | ca13d78c3a196a4e54f5fa1f728627f558bfe2c9 (patch) | |
tree | 4e323d18dbe77a902ba3c522f88da08b3d0c36d5 | |
parent | 073ff90b20c0575257f9fe5b84ed9a4ed5875299 (diff) | |
download | aur-ca13d78c3a196a4e54f5fa1f728627f558bfe2c9.tar.gz |
add license
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -5,7 +5,7 @@ pkgbase = neovim-coc-lists-git url = https://github.com/neoclide/coc-lists arch = any groups = neovim-coc-extras-git - license = + license = MIT makedepends = git makedepends = yarn makedepends = npm @@ -8,7 +8,7 @@ url='https://github.com/neoclide/coc-lists' 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}") @@ -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}" } |