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

pkgname=stereophotoview
pkgver=1.1.0
pkgrel=1
pkgdesc="A cross platform stereoscopic photo viewer and editor"
arch=('i686' 'x86_64')
url="https://bitbucket.org/av-mamzikov/stereophotoview"
license=('GPL3')
groups=()
depends=(libpng qt5-base qt5-declarative)
makedepends=(qt5-base qt5-tools qt5-declarative qt5-multimedia qt5-quickcontrols)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=.install
source=(https://bitbucket.org/av-mamzikov/stereophotoview/get/${pkgver}.zip)
noextract=()
md5sums=('58f6dac67d6cc9bd0827c687e867adf0') #generate with 'makepkg -g'

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"
  sed -i -e 's:"stereophotoview/image-mpo.svg":"/usr/share/pixmaps/stereophotoview/image-mpo.svg":' "${pkgdir}/usr/share/mime/packages/stereophotoview.xml"
}