diff options
author | Zhang Hua | 2023-05-20 10:33:09 +0800 |
---|---|---|
committer | Zhang Hua | 2023-05-20 10:33:09 +0800 |
commit | deb276df1acb529bb4af516f98d3129332ed45f5 (patch) | |
tree | 71723288d7c3cf64a001718c82f0b00c2cb466d8 | |
parent | 97b7e7040505bc8b3a7830438818ca99fdd4f73c (diff) | |
download | aur-deb276df1acb529bb4af516f98d3129332ed45f5.tar.gz |
Fix build failure on Node20
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
3 files changed, 14 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = icalingua++-git pkgdesc = A Linux client for QQ and more(fork to upgrading) - pkgver = 2.8.10.r6.gc165f483 + pkgver = 2.9.12.r1.gb626dcdf pkgrel = 1 url = https://github.com/Icalingua-plus-plus/Icalingua-plus-plus arch = aarch64 @@ -9,6 +9,7 @@ pkgbase = icalingua++-git license = AGPL makedepends = git makedepends = node-gyp + makedepends = nodejs-lts-gallium depends = ffmpeg depends = libappindicator-gtk3 depends = libvips diff --git a/.gitignore b/.gitignore index 53a01dea0261..5f0ca8c8c62f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ pkg src *.pkg.tar.* Icalingua - +*.log @@ -3,12 +3,12 @@ # Contributor: Clansty <i at gao4 dot pw> pkgname=("icalingua++-git" "icalingua++-electron-git") -pkgver=2.8.10.r6.gc165f483 +pkgver=2.9.12.r1.gb626dcdf pkgrel=1 pkgdesc='A Linux client for QQ and more(fork to upgrading)' license=('AGPL') depends=('ffmpeg' 'libappindicator-gtk3' 'libvips') -makedepends=('git' 'node-gyp') +makedepends=('git' 'node-gyp' 'nodejs-lts-gallium') optdepends=('mongodb: Provides storage' 'redis: Provides storage') arch=('aarch64' 'x86_64' 'i686') @@ -28,10 +28,16 @@ pkgver(){ build(){ cd "${srcdir}/Icalingua" export NODE_OPTIONS=--openssl-legacy-provider - node /usr/lib/node_modules/corepack/dist/pnpm.js install - chmod +x node_modules/ts-node/dist/bin.js + export PATH="$HOME/.local/bin:$PATH" + mkdir -p "$HOME/.local/bin" + corepack enable --install-directory "$HOME/.local/bin" + pnpm install + if [[ -f node_modules/ts-node/dist/bin.js ]] + then + chmod +x node_modules/ts-node/dist/bin.js + fi cd icalingua - node /usr/lib/node_modules/corepack/dist/pnpm.js run build:dir + pnpm run build:dir } package_icalingua++-git(){ case ${CARCH} in |