summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41023028397cc18d91b58efcfc57dbcc9c7af4d7 (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
# Maintainer: ServiusHack <serviushack at gmx dot de>
pkgname=casparcg-client-git
pkgver=next_r1235.e0642dc3
pkgrel=1
pkgdesc='A client software used to control the CasparCG Server software'
arch=('x86_64')
url='http://www.casparcg.com/'
license=('GPL')
depends=('boost-libs' 'qt6-base' 'qt6-websockets' 'vlc')
makedepends=('git' 'boost' 'time')
source=('git+https://github.com/CasparCG/Client.git'
        'git+https://github.com/RossBencina/oscpack.git')
sha256sums=('SKIP' 'SKIP')
conflicts=('casparcg-client-bin')

pkgver() {
	cd "$srcdir/Client"
	printf "next_r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "${srcdir}/Client"
	git submodule init
	git config submodule.lib/oscpack.url "$srcdir/oscpack"
	git -c protocol.file.allow=always submodule update
}

build() {
	cd "$srcdir/Client"

	./tools/build-linux.sh
}

package() {
	ar x "${srcdir}/Client/build/CasparCG-Client-1.0-Linux.deb" data.tar.gz
	tar xf ${srcdir}/data.tar.gz -C ${pkgdir}/
}