summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 685014c6d71a9a6e0923ce80730948d67478b6e4 (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
53
# Maintainer: iEvgeny <me@vragam.net>
# Contributor: Zajoe <zajoe223@gmail.com>
_pkgname=cctv-viewer
pkgname=${_pkgname}-git
pkgver=0.1.9_alpha
pkgrel=1
epoch=0
pkgdesc="A simple Qt application for simultaneously viewing multiple video streams. Designed for high performance and low latency. Based on ffmpeg."
arch=('any')
url="https://github.com/iEvgeny/cctv-viewer"
license=('GPL')
depends=('glibc'
         'gcc-libs'
         'qt5-base'
         'qt5-translations'
         'qt5-svg'
         'ffmpeg'
         'qt5-multimedia'
         'qt5-quickcontrols'
         'qt5-quickcontrols2'
         'qt5-graphicaleffects'
         'ttf-font'
         'gtest')
makedepends=(git
            make
            cmake
            qt5-tools)
provides=(cctv-viewer)
source=('git+https://github.com/iEvgeny/cctv-viewer.git'
        'git+https://github.com/iEvgeny/qmlav.git')
sha1sums=('SKIP' 'SKIP')

prepare() {
    cd $_pkgname
    git submodule init
    git config submodule.gmlav.url $srcdir/mysubmodule
    git submodule update

    # Fix build when Qt6 is installed
    sed -i "s/Qt6//g" "${srcdir}/cctv-viewer/CMakeLists.txt"
}

build() {
    cd $_pkgname
    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DPACKAGER=AUR
    make
}


package() {
    make DESTDIR="$pkgdir" -C "$srcdir/$_pkgname" install
    cd "$pkgdir"
}