You've already forked audiobookshelf
Compare commits
22 Commits
bb1f4ef582
...
79b01e1dea
| Author | SHA1 | Date | |
|---|---|---|---|
| 79b01e1dea | |||
| 25cfaeda12 | |||
| c0015d5efc | |||
| 784dececce | |||
| 7542fe43a7 | |||
| a1496ec18d | |||
| 8d2b01076b | |||
| e6145cafc3 | |||
| 0ce8de2f21 | |||
| 01ecf70408 | |||
| 73532eb654 | |||
| 56c067cead | |||
| 0e5ccd86b8 | |||
| bfaccfec29 | |||
| 1c6b022b8c | |||
| de7478c913 | |||
| 7cfd98c9e2 | |||
| b90bfd4e43 | |||
| cd1dbd7801 | |||
| 91c2471bb6 | |||
| 45cef2195c | |||
| 8c296fcf33 |
7
.SRCINFO
7
.SRCINFO
@@ -9,8 +9,7 @@ pkgbase = audiobookshelf
|
|||||||
license = GPL-3.0-only
|
license = GPL-3.0-only
|
||||||
makedepends = npm
|
makedepends = npm
|
||||||
depends = ffmpeg
|
depends = ffmpeg
|
||||||
depends = libnusqlite3
|
depends = nodejs-lts-krypton
|
||||||
depends = nodejs
|
|
||||||
options = !debug
|
options = !debug
|
||||||
backup = etc/conf.d/audiobookshelf
|
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.30.0.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.30.0.tar.gz
|
||||||
@@ -20,9 +19,9 @@ pkgbase = audiobookshelf
|
|||||||
source = audiobookshelf.sysusers
|
source = audiobookshelf.sysusers
|
||||||
source = audiobookshelf.tmpfiles
|
source = audiobookshelf.tmpfiles
|
||||||
sha256sums = 1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf
|
sha256sums = 1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf
|
||||||
sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
|
sha256sums = 8739e07db19557aa03d23af09e871f3ca9489d99688622c49f2ea4e8c60a7989
|
||||||
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
|
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
|
||||||
sha256sums = 4f37d8e407eda555231dc23d1cd35d329075ae6686acbb89d0b4612a824d594d
|
sha256sums = 6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817
|
||||||
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
|
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
|
||||||
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
|
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
|
||||||
|
|
||||||
|
|||||||
7
PKGBUILD
7
PKGBUILD
@@ -10,7 +10,7 @@ pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
|||||||
arch=("x86_64" "aarch64")
|
arch=("x86_64" "aarch64")
|
||||||
url="https://github.com/advplyr/${pkgname}"
|
url="https://github.com/advplyr/${pkgname}"
|
||||||
license=('GPL-3.0-only')
|
license=('GPL-3.0-only')
|
||||||
depends=("ffmpeg" "libnusqlite3" "nodejs")
|
depends=("ffmpeg" "nodejs-lts-krypton")
|
||||||
makedepends=("npm")
|
makedepends=("npm")
|
||||||
backup=("etc/conf.d/${pkgname}")
|
backup=("etc/conf.d/${pkgname}")
|
||||||
options=("!debug")
|
options=("!debug")
|
||||||
@@ -21,15 +21,16 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
|
|||||||
"${pkgname}.sysusers"
|
"${pkgname}.sysusers"
|
||||||
"${pkgname}.tmpfiles")
|
"${pkgname}.tmpfiles")
|
||||||
sha256sums=('1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf'
|
sha256sums=('1f35924925671a23181b814123cd12d89ffd4fa0a1f40ab33791fa9480d047cf'
|
||||||
'50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
|
'8739e07db19557aa03d23af09e871f3ca9489d99688622c49f2ea4e8c60a7989'
|
||||||
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
|
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
|
||||||
'4f37d8e407eda555231dc23d1cd35d329075ae6686acbb89d0b4612a824d594d'
|
'6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817'
|
||||||
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
|
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
|
||||||
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
|
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${pkgname}-${pkgver}"
|
cd "${pkgname}-${pkgver}"
|
||||||
npm run client
|
npm run client
|
||||||
|
npm install
|
||||||
npm ci --only=production
|
npm ci --only=production
|
||||||
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
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ CONFIG_PATH=/var/lib/audiobookshelf/config
|
|||||||
SOURCE=archlinux
|
SOURCE=archlinux
|
||||||
FFMPEG_PATH=/usr/bin/ffmpeg
|
FFMPEG_PATH=/usr/bin/ffmpeg
|
||||||
FFPROBE_PATH=/usr/bin/ffprobe
|
FFPROBE_PATH=/usr/bin/ffprobe
|
||||||
NUSQLITE3_PATH=/usr/lib/libnusqlite3.so
|
|
||||||
SKIP_BINARIES_CHECK=1
|
SKIP_BINARIES_CHECK=1
|
||||||
PORT=13378
|
PORT=13378
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Requires=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=/etc/conf.d/audiobookshelf
|
EnvironmentFile=/etc/conf.d/audiobookshelf
|
||||||
|
EnvironmentFile=-/etc/conf.d/audiobookshelf.custom
|
||||||
WorkingDirectory=/var/lib/audiobookshelf
|
WorkingDirectory=/var/lib/audiobookshelf
|
||||||
ExecStart=/usr/bin/audiobookshelf
|
ExecStart=/usr/bin/audiobookshelf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
@@ -12,5 +13,17 @@ Restart=always
|
|||||||
User=audiobookshelf
|
User=audiobookshelf
|
||||||
Group=audiobookshelf
|
Group=audiobookshelf
|
||||||
|
|
||||||
|
RuntimeDirectory=audiobookshelf
|
||||||
|
StateDirectory=audiobookshelf
|
||||||
|
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
CapabilityBoundingSet=
|
||||||
|
RestrictNamespaces=true
|
||||||
|
SystemCallFilter=@system-service
|
||||||
|
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user