2025-11-02 12:13:03 -05:00
parent c0015d5efc
commit 25cfaeda12
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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