Compare commits

...

7 Commits

Author SHA1 Message Date
cd53f7fef5 Merge remote-tracking branch 'aur/master' 2025-12-30 18:02:04 -05:00
devome
6f48b41a79 audiobookshelf: 2.32.1-1 2025-12-24 08:15:01 +08:00
devome
ad0fa27155 audiobookshelf: 2.32.0-1 2025-12-22 07:15:07 +08:00
devome
31b8e380e7 audiobookshelf: 2.31.0-1 2025-12-02 08:16:32 +08:00
Jason Nader
bc3fbb5dfb fix: bump pkgrel 2025-11-30 16:15:23 +09:00
Jason Nader
73e3c2f691 fix: use nodeJS <25
Errors when running with NodeJS v25:
```
> audiobookshelf
/usr/lib/audiobookshelf/node_modules/buffer-equal-constant-time/index.js:37
var origSlowBufEqual = SlowBuffer.prototype.equal;
                                  ^

TypeError: Cannot read properties of undefined (reading 'prototype')
    at Object.<anonymous> (/usr/lib/audiobookshelf/node_modules/buffer-equal-constant-time/index.js:37:35)
    at Module._compile (node:internal/modules/cjs/loader:1760:14)
    at Object..js (node:internal/modules/cjs/loader:1892:10)
    at Module.load (node:internal/modules/cjs/loader:1480:32)
    at Module._load (node:internal/modules/cjs/loader:1299:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1503:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/usr/lib/audiobookshelf/node_modules/jwa/index.js:1:19)

Node.js v25.2.1
```
2025-11-30 16:14:22 +09:00
Jason Nader
8e2e31ef2a fix build for v2.30.0 2025-11-30 16:04:55 +09:00
2 changed files with 12 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
pkgbase = audiobookshelf
pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
pkgver = 2.30.0
pkgver = 2.32.1
pkgrel = 1
epoch = 1
url = https://github.com/advplyr/audiobookshelf
@@ -12,13 +12,13 @@ pkgbase = audiobookshelf
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
source = audiobookshelf-2.32.1.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.32.1.tar.gz
source = audiobookshelf.conf
source = audiobookshelf.hook
source = audiobookshelf.service
source = audiobookshelf.sysusers
source = audiobookshelf.tmpfiles
sha256sums = 1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf
sha256sums = c718a9e23f7c94bf91c374564191ec4e030f638ec2cde379b8db71aee70b092a
sha256sums = 8739e07db19557aa03d23af09e871f3ca9489d99688622c49f2ea4e8c60a7989
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
sha256sums = 6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817

View File

@@ -3,7 +3,7 @@
# Based on PKGBUILD by Kevin S <aur@eldenring.mozmail.com>
pkgname=audiobookshelf
pkgver=2.30.0
pkgver=2.32.1
pkgrel=1
epoch=1
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
@@ -20,7 +20,7 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
"${pkgname}.service"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles")
sha256sums=('1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf'
sha256sums=('c718a9e23f7c94bf91c374564191ec4e030f638ec2cde379b8db71aee70b092a'
'8739e07db19557aa03d23af09e871f3ca9489d99688622c49f2ea4e8c60a7989'
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
'6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817'
@@ -29,9 +29,14 @@ sha256sums=('1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf'
build() {
cd "${pkgname}-${pkgver}"
# build client
npm run client
npm install
npm ci --only=production
# build server
# workaround for https://github.com/advplyr/audiobookshelf/issues/4876
npm install --cache "${srcdir}/npm-cache"
npm ci --omit=dev
find {client/dist,node_modules,server} -type f -name "*.map" | xargs rm -rf
sed -i '1i #!/usr/bin/node\n' index.js
}