summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78ab57a64efffe76b3fbfcaa4e810cac8803f91a (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
54
55
56
57
# Maintainer: John Jenkins <twodopeshaggy@gmail.com>
# Contributor: flu

I_WANT_WEBM_SUPPORT=yes


_name=pqiv
pkgname=$_name-git
pkgver=2.8.5.r133.ge7ade7c
pkgrel=1
pkgdesc="Modern rewrite of Quick Image Viewer - development version"
arch=('i686' 'x86_64')
url="https://github.com/phillipberndt/pqiv"
license=('GPL3')
provides=("$_name")
conflicts=("$_name")
depends=('gtk3')
#depends=('gtk2')
makedepends=('git')
optdepends=(
  'libspectre:   PS/EPS support'
  'poppler:      PDF support'
  'imagemagick:  additional image formats like psd'
  'libarchive:   comic books support'
  'libwebp:      WebP support'
)

if [ $I_WANT_WEBM_SUPPORT = yes ]; then
  optdepends+=('ffmpeg: basic video support e.g. WEBM')
fi

source=(git+$url)
sha256sums=(SKIP)

pkgver() {
  cd   "$srcdir"/"$_name"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_name
  
  if [ $I_WANT_WEBM_SUPPORT = yes ]; then
    ./configure --backends-build=shared --with-libav

  else
    ./configure --backends-build=shared

  fi

  make
}

package() {
  cd $_name
  make DESTDIR=$pkgdir install
}