summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ff552d4067844b7fbc607e6251073cacf7204ee (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
# Maintainer: Joe <kenwood364@gmail.com>
pkgname=bluecherry-client-git
pkgver=2.2.9.r7.gaeda0c2f
pkgrel=2
pkgdesc="Bluecherry Client for use with a bluecherry DVR server."
arch=(x86_64 i686)
url="https://github.com/bluecherrydvr/bluecherry-client.git"
license=('GPL')
depends=(mpv ffmpeg4.4 sdl qt5-base)
makedepends=(git qt5-tools)
provides=(bluecherry-client)
conflicts=(bluecherry-client)
source=("git+$url")
md5sums=('SKIP')

pkgver(){
	cd "${pkgname%-git}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	export PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig/:$PKG_CONFIG_PATH"
	cd "${pkgname%-git}"
	./autogen.sh
	./configure
	make
}

package() {
	cd "${pkgname%-git}"
	printf "${pkgdir}"
	install -Dm644 "linux/bluecherry-client.desktop" "${pkgdir}/usr/share/applications/bluecherry-client.desktop"
	install -Dm644 "res/bluecherry-client.png" "${pkgdir}/usr/share/icons/bluecherry-client.png"
	make DESTDIR="${pkgdir}/" install
}