mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 04:41:00 +01:00
rmpd: 0.1.0
This commit is contained in:
commit
625202455d
3 changed files with 77 additions and 0 deletions
26
.SRCINFO
Normal file
26
.SRCINFO
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
pkgbase = rmpd-bin
|
||||
pkgdesc = A flexible, powerful, server-side application for playing music
|
||||
pkgver = 0.1.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/M0Rf30/rmpd
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = MIT
|
||||
license = Apache-2.0
|
||||
depends = gcc-libs
|
||||
depends = alsa-lib
|
||||
depends = sqlite
|
||||
optdepends = pulseaudio: PulseAudio output support
|
||||
optdepends = pipewire: PipeWire output support
|
||||
optdepends = snapcast: Multi-room audio synchronization
|
||||
provides = rmpd
|
||||
conflicts = rmpd
|
||||
conflicts = rmpd-git
|
||||
source = rmpd.service
|
||||
sha256sums = f8068b7c7aa732a8b0649d795c50ff74d5da10069f103206366b051368c9c8fe
|
||||
source_x86_64 = rmpd-0.1.0-x86_64.tar.gz::https://github.com/M0Rf30/rmpd/releases/download/0.1.0/rmpd-0.1.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
sha256sums_x86_64 = f93d1bfbda2a9aac903c8ffea87fad1512ecacb9490a90684622b7ff851f023c
|
||||
source_aarch64 = rmpd-0.1.0-aarch64.tar.gz::https://github.com/M0Rf30/rmpd/releases/download/0.1.0/rmpd-0.1.0-aarch64-unknown-linux-gnu.tar.gz
|
||||
sha256sums_aarch64 = 9753f5b0c6ddf35f1446960e59cc5db0ca1f05f7896d7fc5d2499e4262cf41d0
|
||||
|
||||
pkgname = rmpd-bin
|
||||
31
PKGBUILD
Normal file
31
PKGBUILD
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Maintainer: robertfoster
|
||||
pkgname=rmpd-bin
|
||||
pkgver=0.1.0 # renovate: datasource=github-releases depName=M0Rf30/rmpd
|
||||
pkgrel=1
|
||||
pkgdesc="A flexible, powerful, server-side application for playing music"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/M0Rf30/rmpd"
|
||||
license=('MIT' 'Apache-2.0')
|
||||
depends=('gcc-libs' 'alsa-lib' 'sqlite')
|
||||
optdepends=(
|
||||
'pulseaudio: PulseAudio output support'
|
||||
'pipewire: PipeWire output support'
|
||||
'snapcast: Multi-room audio synchronization'
|
||||
)
|
||||
provides=("${pkgname%%-bin}")
|
||||
conflicts=("${pkgname%%-bin}" "${pkgname%%-bin}-git")
|
||||
source=("${pkgname%%-bin}.service")
|
||||
source_x86_64=("${pkgname%%-bin}-${pkgver}-x86_64.tar.gz::${url}/releases/download/${pkgver}/${pkgname%%-bin}-${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
|
||||
source_aarch64=("${pkgname%%-bin}-${pkgver}-aarch64.tar.gz::${url}/releases/download/${pkgver}/${pkgname%%-bin}-${pkgver}-aarch64-unknown-linux-gnu.tar.gz")
|
||||
sha256sums=('f8068b7c7aa732a8b0649d795c50ff74d5da10069f103206366b051368c9c8fe')
|
||||
sha256sums_x86_64=('f93d1bfbda2a9aac903c8ffea87fad1512ecacb9490a90684622b7ff851f023c')
|
||||
sha256sums_aarch64=('9753f5b0c6ddf35f1446960e59cc5db0ca1f05f7896d7fc5d2499e4262cf41d0')
|
||||
|
||||
package() {
|
||||
# Install binary
|
||||
install -Dm755 "${srcdir}/${pkgname%%-bin}" "${pkgdir}/usr/bin/${pkgname%%-bin}"
|
||||
|
||||
# Install systemd service file
|
||||
install -Dm644 "${srcdir}/${pkgname%%-bin}.service" \
|
||||
"${pkgdir}/usr/lib/systemd/user/${pkgname%%-bin}.service"
|
||||
}
|
||||
20
rmpd.service
Normal file
20
rmpd.service
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=Rust music player daemon
|
||||
Documentation=https://github.com/M0Rf30/rmpd
|
||||
After=network.target sound.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/rmpd
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
# Security hardening
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
ReadWritePaths=%h/.config/rmpd %h/Music
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Reference in a new issue