From 25cfaeda124bccbf2a5d41fa109d9eb61e474bed Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Sun, 2 Nov 2025 12:13:03 -0500 Subject: [PATCH] use nodejs lts and add npm install https://aur.archlinux.org/packages/audiobookshelf#comment-1044966 https://aur.archlinux.org/packages/audiobookshelf#comment-1042829 --- .SRCINFO | 2 +- PKGBUILD | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 396badb..26fb2db 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -10,7 +10,7 @@ pkgbase = audiobookshelf makedepends = npm depends = ffmpeg depends = libnusqlite3 - depends = nodejs + depends = nodejs-lts-krypton options = !debug backup = etc/conf.d/audiobookshelf source = audiobookshelf-2.30.0.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.30.0.tar.gz diff --git a/PKGBUILD b/PKGBUILD index 289e2ab..e183ea8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,7 +10,7 @@ pkgdesc="Self-hosted audiobook server for managing and playing audiobooks" arch=("x86_64" "aarch64") url="https://github.com/advplyr/${pkgname}" license=('GPL-3.0-only') -depends=("ffmpeg" "libnusqlite3" "nodejs") +depends=("ffmpeg" "libnusqlite3" "nodejs-lts-krypton") makedepends=("npm") backup=("etc/conf.d/${pkgname}") options=("!debug") @@ -30,6 +30,7 @@ sha256sums=('1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf' build() { cd "${pkgname}-${pkgver}" npm run client + npm install npm ci --only=production find {client/dist,node_modules,server} -type f -name "*.map" | xargs rm -rf sed -i '1i #!/usr/bin/node\n' index.js