summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42cf8372ede486753da0f24f464ebd44aecc66f3 (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
# Maintainer: katt <magunasu.b97@gmail.com>

pkgname=qimgv-light-git
pkgver=1.0.3alpha.r105.g70dc0ef9
pkgrel=2
pkgdesc='Qt6 image viewer (git, without any optional features)'
arch=(x86_64 i686 armv6h armv7h aarch64)
url=https://github.com/easymodo/qimgv
license=(GPL-3.0-or-later)
depends=(qt6-base qt6-imageformats qt6-svg qt6-5compat)
makedepends=(cmake qt6-tools git)
provides=("${pkgname%-light-git}")
conflicts=("${pkgname%-light-git}")
optdepends=('kimageformats: support for more image formats')
source=(git+"${url}".git)
sha256sums=('SKIP')

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

build() {
    cmake -B build -S "${pkgname%-light-git}" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DEXIV2=OFF \
        -DVIDEO_SUPPORT=OFF \
        -DOPENCV_SUPPORT=OFF \
        -Wno-dev
    cmake --build build
}

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