summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9105853048522350664a3dd46cab95545e7f9285 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Andy Kluger <https://t.me/andykluger>
# Contributor: jurplel <jeep70cp[at]gmail[dotcom]>

pkgname=qview-git
pkgver=6.1.r13.g6c7a99d
pkgrel=1
pkgdesc='Practical and minimal image viewer'
arch=(x86_64)
url=https://interversehq.com/qview
license=(GPL3)
depends=(hicolor-icon-theme qt5-base qt5-tools)
#            'qt5-heif-image-plugin: HEIF support'
optdepends=('kimageformats5: additional image format support'
            'qt5-avif-image-plugin: AVIF support'
            'qt-heif-image-plugin: HEIF support'
            'qt5-apng-plugin: APNG support'
            'qt5-imageformats: additional image format support'
            'qt5-svg: SVG support')
makedepends=(git qt5-x11extras)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/jurplel/qView.git")
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $pkgname
  qmake PREFIX=/usr
  make
}

package() {
  make -C $pkgname INSTALL_ROOT="$pkgdir/" install
}