fix: use more standard locations
This commit is contained in:
parent
45975314ca
commit
1acefeff23
12
.SRCINFO
12
.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 = v2.8.0
|
pkgver = v2.8.0
|
||||||
pkgrel = 3
|
pkgrel = 4
|
||||||
url = https://github.com/advplyr/audiobookshelf
|
url = https://github.com/advplyr/audiobookshelf
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL3
|
license = GPL3
|
||||||
@ -21,10 +21,10 @@ pkgbase = audiobookshelf
|
|||||||
source = audiobookshelf.sysusers
|
source = audiobookshelf.sysusers
|
||||||
source = audiobookshelf.tmpfiles
|
source = audiobookshelf.tmpfiles
|
||||||
md5sums = SKIP
|
md5sums = SKIP
|
||||||
md5sums = de5fab845f7f96b49956c7dc21268593
|
md5sums = 4832a71a50f33831b6b4be53555e05f5
|
||||||
md5sums = 749322fc2b48a839a79a638d879e77a4
|
md5sums = 3c4d1ab715f9221cb625b8248e3023df
|
||||||
md5sums = ce89e5d2ce27de70b5e6b53cbaf595f0
|
md5sums = ed4711d3ce7d76fc173fb0e10915b80c
|
||||||
md5sums = 63619dfc5bb5b2dbecfb1d6037095338
|
md5sums = f8a4833710760dd16a89906052dff322
|
||||||
md5sums = 90e34ac4e5a79f71af3eaab8cebf1198
|
md5sums = b741beeaf0fc232734c9d20ee5b988aa
|
||||||
|
|
||||||
pkgname = audiobookshelf
|
pkgname = audiobookshelf
|
||||||
|
16
PKGBUILD
16
PKGBUILD
@ -2,7 +2,7 @@
|
|||||||
# Based on PKGBUILD by Kevin S <aur@eldenring.mozmail.com>
|
# Based on PKGBUILD by Kevin S <aur@eldenring.mozmail.com>
|
||||||
pkgname=audiobookshelf
|
pkgname=audiobookshelf
|
||||||
pkgver=v2.8.0
|
pkgver=v2.8.0
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/advplyr/audiobookshelf"
|
url="https://github.com/advplyr/audiobookshelf"
|
||||||
@ -16,7 +16,7 @@ backup=('etc/conf.d/audiobookshelf')
|
|||||||
options=(!strip)
|
options=(!strip)
|
||||||
|
|
||||||
source=(
|
source=(
|
||||||
"git+${url}#tag=${pkgver}"
|
"git+${url}#tag=${pkgver}"
|
||||||
'audiobookshelf.conf.d'
|
'audiobookshelf.conf.d'
|
||||||
'audiobookshelf.hook'
|
'audiobookshelf.hook'
|
||||||
'audiobookshelf.service'
|
'audiobookshelf.service'
|
||||||
@ -26,11 +26,11 @@ source=(
|
|||||||
|
|
||||||
md5sums=(
|
md5sums=(
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'de5fab845f7f96b49956c7dc21268593'
|
'4832a71a50f33831b6b4be53555e05f5'
|
||||||
'749322fc2b48a839a79a638d879e77a4'
|
'3c4d1ab715f9221cb625b8248e3023df'
|
||||||
'ce89e5d2ce27de70b5e6b53cbaf595f0'
|
'ed4711d3ce7d76fc173fb0e10915b80c'
|
||||||
'63619dfc5bb5b2dbecfb1d6037095338'
|
'f8a4833710760dd16a89906052dff322'
|
||||||
'90e34ac4e5a79f71af3eaab8cebf1198'
|
'b741beeaf0fc232734c9d20ee5b988aa'
|
||||||
)
|
)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
@ -60,7 +60,7 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd "${srcdir}/${pkgname}"
|
||||||
|
|
||||||
install -d -m 755 "${pkgdir}/usr/bin"
|
install -d -m 755 "${pkgdir}/usr/bin"
|
||||||
"${srcdir}/${pkgname}"/node_modules/.bin/pkg -t node16-linux -o "${pkgdir}/usr/share/audiobookshelf/audiobookshelf" .
|
"${srcdir}/${pkgname}"/node_modules/.bin/pkg -t node16-linux -o "${pkgdir}/usr/share/audiobookshelf/audiobookshelf" .
|
||||||
install -D -m 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -D -m 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
install -D -m 644 "${srcdir}/audiobookshelf.conf.d" "${pkgdir}/etc/conf.d/audiobookshelf"
|
install -D -m 644 "${srcdir}/audiobookshelf.conf.d" "${pkgdir}/etc/conf.d/audiobookshelf"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
METADATA_PATH=/usr/share/audiobookshelf/metadata
|
METADATA_PATH=/var/lib/audiobookshelf/metadata
|
||||||
CONFIG_PATH=/usr/share/audiobookshelf/config
|
CONFIG_PATH=/var/lib/audiobookshelf/config
|
||||||
FFMPEG_PATH=/usr/bin/ffmpeg
|
FFMPEG_PATH=/usr/bin/ffmpeg
|
||||||
FFPROBE_PATH=/usr/bin/ffprobe
|
FFPROBE_PATH=/usr/bin/ffprobe
|
||||||
TONE_PATH=/usr/bin/tone
|
TONE_PATH=/usr/bin/tone
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
[Trigger]
|
[Trigger]
|
||||||
Operation = Upgrade
|
Operation = Upgrade
|
||||||
Type = Package
|
Type = Package
|
||||||
Target = audiobookshelf-git
|
Target = audiobookshelf
|
||||||
|
|
||||||
[Action]
|
[Action]
|
||||||
Description = Restarting audiobookshelf...
|
Description = Restarting audiobookshelf...
|
||||||
|
@ -5,8 +5,8 @@ Requires=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=/etc/conf.d/audiobookshelf
|
EnvironmentFile=/etc/conf.d/audiobookshelf
|
||||||
WorkingDirectory=/usr/share/audiobookshelf
|
WorkingDirectory=/var/lib/audiobookshelf
|
||||||
ExecStart=/usr/share/audiobookshelf/audiobookshelf
|
ExecStart=/usr/bin/audiobookshelf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
User=audiobookshelf
|
User=audiobookshelf
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
u audiobookshelf - - /usr/share/audiobookshelf
|
u audiobookshelf - - /var/lib/audiobookshelf
|
||||||
g audiobookshelf -
|
g audiobookshelf -
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
d /usr/share/audiobookshelf 0755 audiobookshelf audiobookshelf
|
d /var/lib/audiobookshelf 0755 audiobookshelf audiobookshelf
|
||||||
Z /usr/share/audiobookshelf - audiobookshelf audiobookshelf
|
Z /var/lib/audiobookshelf - audiobookshelf audiobookshelf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user