summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d4e7dc041073d388e28d61287740085baf39f2d (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: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix

pkgname=viewnior-gtk3-git
pkgver=r314.23ce6e5
pkgrel=1
pkgdesc="Simple, fast and elegant image viewer program. Gtk3 fork"
arch=(x86_64)
url="https://github.com/Artturin/Viewnior"
license=(GPL-3.0-or-later)
depends=(exiv2 gtk3)
makedepends=(meson ninja git glib2-devel)
optdepends=(webp-pixbuf-loader)
provides=(viewnior)
conflicts=(viewnior)
source=("viewnior-artturin::git+https://github.com/Artturin/Viewnior.git") #NB gtk3-and-other is default
sha256sums=('SKIP')

pkgver() {
  cd "viewnior-artturin"
  #git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/viewnior.//'
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "viewnior-artturin"
  arch-meson build
  ninja -C build
}

package() {
  cd "viewnior-artturin"
  DESTDIR="${pkgdir}" ninja -C build install
}