summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48cc45f21bae56d4f7ab8ac2f82f79fa52d7c742 (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
# Contributor: Alexander Mamzikov <av.mamzikov@gmail.com>

pkgname=stereophotoview
pkgver=1.11.0
pkgrel=2
pkgdesc="Viewer/editor for stereoscopic 3d photo and video"
arch=('i686' 'x86_64')
url="https://stereophotoview.bitbucket.io/en"
license=('GPL3')
groups=()
depends=(libpng qt5-base qt5-declarative ffmpeg opencv)
makedepends=(qt5-base qt5-tools qt5-declarative qt5-multimedia qt5-quickcontrols ffmpeg opencv)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
#install=.install
source=(https://bitbucket.org/av-mamzikov/stereophotoview/get/${pkgver}.zip opencv4.patch)
noextract=()
# updpkgsums
md5sums=('ef2e82c432f60824c076ae296efd4ce7'
         '541997434314a3eea89cbdda41487302')

prepare() {
  cd av-mamzikov-stereophotoview-e7c5a890cfe5
  patch -Np1 -i "${srcdir}/opencv4.patch"
}

build() {
  cd "$srcdir"
  test -d build || mkdir build
  cd build
  qmake NoPostInstall=1 PREFIX=${pkgdir}/usr ../av-mamzikov-stereophotoview-*
  make
}

package()
{
  cd "$srcdir/build"
  make install
  sed -i -e 's:Icon=stereophotoview/appicon.svg:Icon=/usr/share/pixmaps/stereophotoview/appicon.svg:' "${pkgdir}/usr/share/applications/stereophotoview.desktop"
}