summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 268f234eab706773918251b14f63202e3bdcc056 (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
# Maintainer: zaps166 <spaz16 at wp dot pl>

pkgname=qdre-viewer-git
pkgver=0.0.0.r74.g0fa5c11
pkgrel=1
pkgdesc='Lightweight Qt image viewer'
arch=('x86_64')
url='https://gitlab.com/zaps166/qdre'
license=('MIT')
groups=('qdre')
depends=('qt6-base' 'glib2' 'exiv2')
makedepends=('cmake' 'git')
conflicts=('qdre-git')
source=("git+https://gitlab.com/zaps166/qdre.git#branch=master")
sha1sums=('SKIP')

prepare() {
    mkdir -p build
}

pkgver() {
    cd qdre
    echo -n "0.0.0.r$(git rev-list --all --count).g$(git rev-parse --short HEAD)"
}

build() {
    cd build
    cmake ../qdre \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_BUILD_TYPE=Release \
        -DAPPS_QDRE_Compositor=OFF
    make
}

package() {
    cd build
    make DESTDIR="${pkgdir}" install
    rm -r "${pkgdir}/usr/include"
    rm -r "${pkgdir}/usr/lib"
}