summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7341c8d9d4a1b2c52301e3c1ce62d92bec179f9b (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
# Maintainer: Christian Karl <christian dot karl at protonmail dot com>

pkgname='vimiv-git'
pkgrel=1
pkgver=r69.58d15aa
pkgdesc="An image viewer with vim-like keybindings"
arch=('any')
url="https://github.com/karlch/vimiv"
license=('MIT')
depends=('python3' 'python-gobject' 'gtk3' 'python-pillow')
makedepends=('git')
optdepends=('imagemagick: for the optimization of images'
            'jhead: for much better autorotation depending on EXIF data')
conflicts=('vimiv')
backup=('etc/vimiv/vimivrc' 'etc/vimiv/keys.conf')
source=("$pkgname::git+${url}.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname" 
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/$pkgname"

    make DESTDIR="$pkgdir" install
}

post_upgrade() {
    printf "The new version comes with two new configuration files. The old \
file vimivrc.py can be removed. See vimivrc(5) for more information.\n"
}