summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a48b6cf539bd55a5fd434e8013c7488efc406c59 (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: Wellington <wellingtonwallace@gmail.com>

pkgname=eyeofsauron-git
pkgver=0.0.1.r0.gdb4fc90
pkgrel=1
pkgdesc='Using webcams and microphone in your Physics classes'
arch=(x86_64 i686)
url='https://github.com/wwmm/eyeofsauron'
license=('GPL3')
depends=(
  'boost-libs'
  'kirigami'
  'kirigami-addons'
  'qqc2-desktop-style'
  'breeze-icons'
  'qt6-base'
  'qt6-multimedia'
  'qt6-charts'
  'opencv'
  'hdf5'
  'vtk'
  'linux-api-headers')
makedepends=('boost' 'cmake' 'extra-cmake-modules' 'git' 'ninja' 'intltool' 'appstream-glib' 'libmediainfo' 'fftw')
#source=("git+https://github.com/wwmm/eyeofsauron.git#branch=eosqt")
source=("git+https://github.com/wwmm/eyeofsauron.git")
conflicts=(eyeofsauron)
provides=(eyeofsauron)
sha512sums=('SKIP')

pkgver() {
  cd eyeofsauron
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  #git describe --long --all | sed 's/^v//;s/^heads\///;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake \
    -B build  \
    -S eyeofsauron \
    -G Ninja \
    -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
    -Wno-dev

  cmake --build build
}

package() {
  DESTDIR="${pkgdir}" cmake --install build
}