Skip to content
Snippets Groups Projects
Commit 3a8da91d authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Migrate syncplay from AUR

parents
No related branches found
No related tags found
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Alexandria Pettit <alxpettit@gmail.com>
# Contributor: Jorge Israel Peña <jorge.israel.p@gmail.com>
# Contributor: mrAppleXZ <mr.applexz@gmail.com>
pkgname=syncplay
pkgver=1.6.9
pkgrel=4
pkgdesc='Synchronize watching movies on mplayer2, vlc, mpv, and mpc-hc across many computers'
arch=(any)
url=http://syncplay.pl
_url="https://github.com/Syncplay/$pkgname"
license=(Apache)
depends=(python
python-twisted)
optdepends=('pyside2: GUI'
'python-service-identity: TLS'
'python-certifi: TLS')
backup=("etc/$pkgname/server.conf")
_archive="$pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz"
"$pkgname.service"
"$pkgname.conf")
sha256sums=('b4acaf009b816dcb3261d9b327aace9005494f0977944b65e3623d50eb465972'
'bbbf8f9dfc36631b49ba7d0fe3f980066b30a544954680a677e5e8629b7e0a8b'
'df3c7656024d60c59664c79f4890f7780a2c5b8b537ac61b017e16b3d4420808')
package() {
install -Dm0644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname@.service"
install -Dm0644 "$pkgname.conf" "$pkgdir/etc/$pkgname/server.conf"
cd "$_archive"
make PREFIX=/usr DESTDIR="$pkgdir" install
}
# This is the file that syncplay@.service loads settings from, it does not affect the binary itself
# See https://syncplay.pl/guide/server/ for a list of available flags and description
#port="--port=8999"
#isolate="--isolate-room"
#password="--password yourpassword"
#salt="--salt RANDOMSALT"
#motd="--motd-file /etc/syncplay/motd"
#ready="--disable-ready"
#chat="--disable-chat"
#maxChars="--max-chat-message-length 500"
#usernameLength="--max-username-length 20"
#statsFile="--stats-db-file /etc/syncplay/stats.db"
#tls="--tls /etc/letsencrypt/live/syncplay.example.com/"
[Unit]
Description=Syncplay Server
After=network.target
[Service]
Type=simple
User=%I
EnvironmentFile=/etc/syncplay/server.conf
ExecStart=/usr/bin/syncplay-server $port $isolate $password $salt $motd $ready $chat $maxChars $usernameLength $statsFile $tls
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment