diff options
author | Chih-Hsuan Yen | 2022-07-13 12:17:50 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2022-07-13 12:17:50 +0800 |
commit | fbb66f746215c8a8d8dc409d1c7393e64a4bc073 (patch) | |
tree | 453ae73921a5bf8ea73d2f2434bc35a0404fa0de /PKGBUILD | |
parent | c65753a5a02ba9a9f7ce4262337b78722b4ece83 (diff) | |
download | aur-fbb66f746215c8a8d8dc409d1c7393e64a4bc073.tar.gz |
switch to yarn following upstream
Upstream switched to yarn some time ago [1]. This PKGBUILD change
ensures the built package uses the same versions of dependencies as
upstream and avoids mysterious issues.
Also disables syncing to AUR. Now I prefer to sync manually, so that
commit messages can be preserved.
[1] https://github.com/DIYgod/RSSHub/commit/483ae4593bc9aea66259035f225db73258a32720
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2,7 +2,7 @@ # Contributor: YuutaW <i@yuuta.moe> pkgname=rsshub-git -pkgver=r6350.47176b672 +pkgver=r7724.d4a196333 pkgrel=1 pkgdesc="Everything is RSSible" # The built package bundles native Node.js extensions like OpenCC @@ -10,7 +10,8 @@ arch=('x86_64') url="https://rsshub.app/" license=('MIT') depends=('nodejs') -makedepends=('npm' 'node-gyp' 'git') +# rsshub uses yarn, and some deps (ex: re2) uses npm +makedepends=('npm' 'yarn' 'node-gyp' 'git') optdepends=( 'chromium: for routes using a headless browser' ) @@ -45,7 +46,7 @@ build() { cd $pkgname # Not using --production here as minify-docker.js needs devDependencies. # Unused dependencies will be cleaned up, anyway. - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install --cache "${srcdir}/npm-cache" + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn --cache-folder "${srcdir}/yarn-cache" # Cleanup node modules, as Dockerfile does. node ./scripts/docker/minify-docker.js |