summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d232f9bb8392fe87fbd9f290c6a31200c97d8897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Jorge Israel Peña <jorge.israel.p@gmail.com>

pkgname=syncplay-git
pkgver=1.7.1.r3.gb22c9ab
pkgrel=2
pkgdesc="synchronize watching movies on mplayer2, vlc, mpv, and mpc-hc on many computers"
arch=('any')
url="http://syncplay.pl/"
license=('Apache-2.0')
depends=('hicolor-icon-theme' 'python' 'python-twisted')
optdepends=('mplayer2: media player'
            'mpv: media player'
            'pyside6: GUI'
            'python-certifi: TLS'
            'python-pem: TLS'
            'python-pyopenssl: TLS'
            'python-pyqt5: GUI'
            'python-service-identity: TLS'
            'vlc: media player')
makedepends=('git')
provides=('syncplay')
conflicts=('syncplay')
backup=("etc/syncplay/server.conf")
source=("${pkgname}"::'git+https://github.com/Syncplay/syncplay.git'
        syncplay@.service
        server.conf)
sha256sums=('SKIP'
            'bbbf8f9dfc36631b49ba7d0fe3f980066b30a544954680a677e5e8629b7e0a8b'
            'df3c7656024d60c59664c79f4890f7780a2c5b8b537ac61b017e16b3d4420808')

pkgver() {
  cd "${pkgname}"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd ${srcdir}

  # systemd unit and its config file
  install -Dm644 syncplay@.service ${pkgdir}/usr/lib/systemd/system/syncplay@.service
  install -Dm644 server.conf "${pkgdir}"/etc/syncplay/server.conf

  cd ${pkgname}

  # actual program
  make DESTDIR="${pkgdir}" install
}