summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4419ab426c4fb0f32fdce447fe9c58c76aeab716 (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
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>

pkgname=onvifviewer
pkgver=0.13
pkgrel=2
pkgdesc='ONVIF camera viewer for Plasma Mobile and Linux desktop'
arch=(x86_64)
license=('GPL3')
depends=(
  'qt5-base'
  'kdsoap'
  'breeze-icons'
  'kxmlgui'
  'kdsoap-ws-discovery-client'
  'kirigami2'
  'qtav'
)
makedepends=(
  'cmake'
  'make'
  'extra-cmake-modules'
  'ki18n'
  'kcoreaddons'
  'appstream-qt'
  'git'
)
source=("https://gitlab.com/caspermeijn/onvifviewer/-/archive/v${pkgver}/onvifviewer-v${pkgver}.tar.gz")

sha256sums=('3a55022f59a9a8c3ccacc6bb8d7f7e329157c3034001c528530751ae7cb2cad2')

build() {
  cd "onvifviewer-v${pkgver}"

#  for f in "${srcdir}"/*.patch; do
#    patch -Np1 < $f
#  done

  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -S . -B build
  cmake --build build
}

package() {
  cd "onvifviewer-v${pkgver}"

  cmake --install build --prefix "${pkgdir}/usr"
}