summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94fb0b697725f6b10f70c8f87c598c696c974702 (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
49
50
51
52
# Maintainer: Bart De Vries <devriesb@gmail.com>

pkgname=snapcast
pkgver=0.13.0
pkgrel=1
pkgdesc="Synchronous multi-room audio player"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/badaix/snapcast"
license=('GPL')
groups=()
depends=(alsa-lib avahi libvorbis flac)
makedepends=(git alsa-utils)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=('etc/default/snapserver' 'etc/default/snapclient')
options=()
install=snapcast.install
changelog=
source=("git+https://github.com/badaix/${pkgname}.git#tag=v${pkgver//_/-}")
noextract=()
validpgpkeys=()
md5sums=('SKIP')

prepare() {
        cd "$pkgname"
        cd externals
        # update all submodules
        git submodule update --init --recursive
}

build() {
	cd "$pkgname"
	make
}

package() {
	cd "$pkgname"
	install -Dm755 -g root -o root server/snapserver ${pkgdir}/usr/bin/snapserver
	install -Dm644 -g root -o root server/snapserver.1 ${pkgdir}/usr/share/man/man1/snapserver.1

	install -Dm755 -g root -o root client/snapclient ${pkgdir}/usr/bin/snapclient
	install -Dm644 -g root -o root client/snapclient.1 ${pkgdir}/usr/share/man/man1/snapclient.1

	install -Dm644 -g root -o root server/debian/snapserver.service ${pkgdir}/usr/lib/systemd/system/snapserver.service
	install -Dm644 -g root -o root server/debian/snapserver.default ${pkgdir}/etc/default/snapserver
	install -Dm644 -g root -o root client/debian/snapclient.service ${pkgdir}/usr/lib/systemd/system/snapclient.service
	install -Dm644 -g root -o root client/debian/snapclient.default ${pkgdir}/etc/default/snapclient
}