mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Initial commit
This commit is contained in:
commit
321c95aa57
5 changed files with 107 additions and 0 deletions
24
.SRCINFO
Normal file
24
.SRCINFO
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
pkgbase = slskd-bin
|
||||
pkgdesc = A modern client-server application for the Soulseek file-sharing network.
|
||||
pkgver = 0.19.5
|
||||
pkgrel = 1
|
||||
url = https://github.com/slskd/slskd/
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
arch = armv7h
|
||||
license = AGPL3
|
||||
options = !strip
|
||||
source = slskd.service
|
||||
source = slskd.sysusers
|
||||
source = slskd.tmpfiles
|
||||
sha256sums = 4081ba91465bcd9784542d9b46313e4803ee464a0cca6c51fc3c6341d5355c01
|
||||
sha256sums = 69545412a47b0d60b4af33faf61499168016202cd1a60da0c15f17f6da3c900b
|
||||
sha256sums = 2f1d645115bbcf225be3e585aaeb598f1710277f17c41c64e0308eb25b8ed4f4
|
||||
source_x86_64 = https://github.com/slskd/slskd/releases/download/0.19.5/slskd-0.19.5-linux-x64.zip
|
||||
sha256sums_x86_64 = 9b135004689b4137e0e8612b9e7ca73a15119f31e34b7bf001f0fd195efc90a0
|
||||
source_aarch64 = https://github.com/slskd/slskd/releases/download/0.19.5/slskd-0.19.5-linux-arm64.zip
|
||||
sha256sums_aarch64 = 42864fda749b32b9dd6286b1597182f474db6aee0a171c42891f41498495d847
|
||||
source_armv7h = https://github.com/slskd/slskd/releases/download/0.19.5/slskd-0.19.5-linux-arm.zip
|
||||
sha256sums_armv7h = f243982f7d342752431436465c540fb567a4a6ed8e5c3d966a3ac30371baee03
|
||||
|
||||
pkgname = slskd-bin
|
||||
54
PKGBUILD
Normal file
54
PKGBUILD
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
pkgname='slskd-bin'
|
||||
pkgver=0.19.5
|
||||
pkgrel=1
|
||||
pkgdesc='A modern client-server application for the Soulseek file-sharing network.'
|
||||
arch=('x86_64' 'aarch64' 'armv7h')
|
||||
url='https://github.com/slskd/slskd/'
|
||||
license=('AGPL3')
|
||||
options=("!strip")
|
||||
options=("!strip")
|
||||
|
||||
depends=(
|
||||
)
|
||||
|
||||
optdepends=(
|
||||
)
|
||||
|
||||
source_x86_64=("https://github.com/slskd/slskd/releases/download/${pkgver}/slskd-${pkgver}-linux-x64.zip")
|
||||
source_aarch64=("https://github.com/slskd/slskd/releases/download/${pkgver}/slskd-${pkgver}-linux-arm64.zip")
|
||||
source_armv7h=("https://github.com/slskd/slskd/releases/download/${pkgver}/slskd-${pkgver}-linux-arm.zip")
|
||||
|
||||
source=(
|
||||
'slskd.service'
|
||||
'slskd.sysusers'
|
||||
'slskd.tmpfiles'
|
||||
)
|
||||
|
||||
noextract=()
|
||||
sha256sums=(
|
||||
'4081ba91465bcd9784542d9b46313e4803ee464a0cca6c51fc3c6341d5355c01'
|
||||
'69545412a47b0d60b4af33faf61499168016202cd1a60da0c15f17f6da3c900b'
|
||||
'2f1d645115bbcf225be3e585aaeb598f1710277f17c41c64e0308eb25b8ed4f4'
|
||||
)
|
||||
sha256sums_x86_64=('9b135004689b4137e0e8612b9e7ca73a15119f31e34b7bf001f0fd195efc90a0')
|
||||
sha256sums_aarch64=('42864fda749b32b9dd6286b1597182f474db6aee0a171c42891f41498495d847')
|
||||
sha256sums_armv7h=('f243982f7d342752431436465c540fb567a4a6ed8e5c3d966a3ac30371baee03')
|
||||
|
||||
pkgver() {
|
||||
# cd ${pkgname}
|
||||
curl -s https://api.github.com/repos/slskd/slskd/releases/latest | grep tag_name | sed 's/.*: "\([^"]\+\)".*/\1/'
|
||||
# Not updating pkgver for some reason
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d -m 755 "${pkgdir}/usr/lib/slskd"
|
||||
cp -dpr --no-preserve=ownership "${srcdir}/slskd" "${pkgdir}/usr/lib/slskd/"
|
||||
cp -dpr --no-preserve=ownership "${srcdir}/wwwroot" "${pkgdir}/usr/lib/slskd/"
|
||||
install -d "$pkgdir/usr/bin"
|
||||
ln -s /usr/lib/slskd/slskd ${pkgdir}/usr/bin/slskd
|
||||
|
||||
install -D -m 644 "${srcdir}/slskd.sysusers" "${pkgdir}/usr/lib/sysusers.d/slskd.conf"
|
||||
install -D -m 644 "${srcdir}/slskd.service" "${pkgdir}/usr/lib/systemd/system/slskd.service"
|
||||
install -D -m 644 "${srcdir}/slskd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/slskd.conf"
|
||||
}
|
||||
|
||||
23
slskd.service
Normal file
23
slskd.service
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Be sure to use `systemctl edit slskd` to modify this service with an override.conf because
|
||||
# direct changes will be overwritten by package updates.
|
||||
#
|
||||
# A user per service w/ shared group setup would have an override like:
|
||||
# [Service]
|
||||
# Group=sharedgroupname
|
||||
# Umask=002
|
||||
|
||||
[Unit]
|
||||
Description=Slskd Service
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=slskd
|
||||
Group=slskd
|
||||
SyslogIdentifier=slskd
|
||||
ExecStart=/usr/lib/slskd/slskd
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
2
slskd.sysusers
Normal file
2
slskd.sysusers
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
u slskd - - /var/lib/slskd
|
||||
g slskd -
|
||||
4
slskd.tmpfiles
Normal file
4
slskd.tmpfiles
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Override this file with a modified version in /etc/tmpfiles.d/
|
||||
d /var/lib/slskd 0755 slskd slskd
|
||||
Z /var/lib/slskd - slskd slskd
|
||||
# L /var/log/slskd - - - - /var/lib/slskd/logs/
|
||||
Loading…
Add table
Reference in a new issue