diff options
author | MoetaYuko | 2022-11-17 16:56:15 +0800 |
---|---|---|
committer | MoetaYuko | 2022-11-17 16:56:15 +0800 |
commit | f6070aaad6bfc44739154fcc8a02a709d4f7cca4 (patch) | |
tree | 972f34d602bc10f145c7c708e628563626dea8fd | |
parent | 367ce71102198d22127545c784ef1a100d7d4664 (diff) | |
download | aur-f6070aaad6bfc44739154fcc8a02a709d4f7cca4.tar.gz |
Bump
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 23 insertions, 13 deletions
@@ -1,13 +1,14 @@ pkgbase = textlint-rule-ja-space-between-half-and-full-width pkgdesc = Textlint rules for half-wide and full-width spaces pkgver = 2.2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/textlint-ja/textlint-rule-preset-ja-spacing arch = any license = MIT makedepends = npm depends = textlint - source = https://github.com/textlint-ja/textlint-rule-preset-ja-spacing/archive/refs/tags/v2.2.0.zip - sha256sums = 316dd6b0442f3c4b0c08a6ba29113e139f96f31d58b080543493caddd716a9f5 + noextract = textlint-rule-preset-ja-spacing-2.2.0.tgz + source = https://registry.npmjs.org/textlint-rule-preset-ja-spacing/-/textlint-rule-preset-ja-spacing-2.2.0.tgz + sha512sums = a3c6c2168379779ae70d5208c142d5206323b226eea49e52e09d6fb577572daafb4c6ec7b171ded9ffeb1f13f8800a72f9f042fd123a117ba2eb666de8f08667 pkgname = textlint-rule-ja-space-between-half-and-full-width @@ -1,21 +1,30 @@ -# Maintainer: dianlujitao <dianlujitao at gmail dot com> +# Maintainer: MoetaYuko <loli at yuko dot moe> +_npmname=textlint-rule-preset-ja-spacing pkgname=textlint-rule-ja-space-between-half-and-full-width -_gitname=textlint-rule-preset-ja-spacing pkgver=2.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="Textlint rules for half-wide and full-width spaces" -arch=(any) +arch=('any') url="https://github.com/textlint-ja/textlint-rule-preset-ja-spacing" license=('MIT') depends=('textlint') makedepends=('npm') -source=(https://github.com/textlint-ja/textlint-rule-preset-ja-spacing/archive/refs/tags/v$pkgver.zip) -sha256sums=('316dd6b0442f3c4b0c08a6ba29113e139f96f31d58b080543493caddd716a9f5') +source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz") +noextract=($_npmname-$pkgver.tgz) +sha512sums=('a3c6c2168379779ae70d5208c142d5206323b226eea49e52e09d6fb577572daafb4c6ec7b171ded9ffeb1f13f8800a72f9f042fd123a117ba2eb666de8f08667') package() { - cd $srcdir/$_gitname-$pkgver - npm install -g --user root --prefix "$pkgdir"/usr - chmod -R go-w "$pkgdir"/usr - chown -R root:root "$pkgdir"/usr + npm install -g --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$pkgver.tgz + + # Non-deterministic race in npm gives 777 permissions to random directories. + # See https://github.com/npm/npm/issues/9359 for details. + chmod -R u=rwX,go=rX "$pkgdir" + + # npm installs package.json owned by build user + # https://bugs.archlinux.org/task/63396 + chown -R root:root "$pkgdir" + + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s ../../../lib/node_modules/marked/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |