diff options
author | Sainnhepark | 2020-10-23 16:42:52 +0800 |
---|---|---|
committer | Sainnhepark | 2020-10-23 16:42:52 +0800 |
commit | b728a125e5a002dfba73bee2892e60d88301fa73 (patch) | |
tree | 3d47802c7304ec4de510f40d70ea170d7b7dc655 | |
parent | def764a0e869ab5e718e2abdae3efa6f0559cda0 (diff) | |
download | aur-b728a125e5a002dfba73bee2892e60d88301fa73.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 = vim-coc-marketplace-git install = vim-coc-marketplace-git.install arch = any groups = vim-coc-extras-git - license = + license = MIT makedepends = git makedepends = yarn makedepends = npm @@ -10,7 +10,7 @@ url='https://github.com/fannheyward/coc-marketplace' depends=('vim-coc') makedepends=('git' 'yarn' 'npm') _packdir="usr/share/vim/vimfiles/pack/coc/start/${_extname}" -license=('') +license=('MIT') groups=('vim-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}" } |