diff options
author | Sainnhepark | 2020-10-23 16:27:34 +0800 |
---|---|---|
committer | Sainnhepark | 2020-10-23 16:27:34 +0800 |
commit | 193f4930a30d77fb9d1fc6b761d59b3c349f17fc (patch) | |
tree | 83fdc2e9bfe18dd2b2768aa6106e009721c4709c /PKGBUILD | |
parent | a7fde8901070213bc74c78116432dc7e86701c2b (diff) | |
download | aur-193f4930a30d77fb9d1fc6b761d59b3c349f17fc.tar.gz |
add license
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -11,7 +11,7 @@ conflicts=("${_variant}-${_extname}") arch=('any') depends=("${_variant}-coc") makedepends=('yarn' 'npm' 'git') -license=('') +license=('MIT') source=("${_extname}::git+${url}.git") pkgver=v0.9.2.r2.g6d13daa pkgrel=1 @@ -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}" } |