You've already forked audiobookshelf
fix build for v2.30.0
This commit is contained in:
2
.SRCINFO
2
.SRCINFO
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = audiobookshelf
|
pkgbase = audiobookshelf
|
||||||
pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
|
pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
|
||||||
pkgver = 2.30.0
|
pkgver = 2.30.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://github.com/advplyr/audiobookshelf
|
url = https://github.com/advplyr/audiobookshelf
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
|
|||||||
10
PKGBUILD
10
PKGBUILD
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
pkgname=audiobookshelf
|
pkgname=audiobookshelf
|
||||||
pkgver=2.30.0
|
pkgver=2.30.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
||||||
arch=("x86_64" "aarch64")
|
arch=("x86_64" "aarch64")
|
||||||
@@ -29,8 +29,14 @@ sha256sums=('1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf'
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${pkgname}-${pkgver}"
|
cd "${pkgname}-${pkgver}"
|
||||||
|
# build client
|
||||||
npm run client
|
npm run client
|
||||||
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
|
find {client/dist,node_modules,server} -type f -name "*.map" | xargs rm -rf
|
||||||
sed -i '1i #!/usr/bin/node\n' index.js
|
sed -i '1i #!/usr/bin/node\n' index.js
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user