You've already forked audiobookshelf
use nodejs lts and add npm install
https://aur.archlinux.org/packages/audiobookshelf#comment-1044966 https://aur.archlinux.org/packages/audiobookshelf#comment-1042829
This commit is contained in:
3
PKGBUILD
3
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
|
||||
|
||||
Reference in New Issue
Block a user