summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e017e29360f78c35f7ea4b7a966aa9bee474e21 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: Ainola
# Contributor: Johan Förberg <johan@forberg.se>

pkgname=imv-git
_pkgname=imv
pkgver=5.0.0.r8.g7154405
pkgrel=1
pkgdesc='A command line image viewer intended for use with tiling window managers'
url="https://git.sr.ht/~exec64/imv"
arch=(x86_64 i686)
license=('MIT')
depends=(
  glu
  libheif
  libinih
  libjpeg-turbo
  libnsgif
  libnsbmp
  libpng
  librsvg
  librsvg
  libtiff
  libwebp
  libxkbcommon
  libxkbcommon-x11
  pango
  qoi
  wayland-protocols
)
makedepends=(
  asciidoc
  cmake
  cmocka
  git
  meson
  tinyxxd
)
provides=(imv)
conflicts=(renameutils imv)
source=("git+https://git.sr.ht/~exec64/imv")
sha256sums=('SKIP')

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

prepare() {
  cd "${_pkgname}"
  sed -i "s/unicode_lib = dependency('icu-io')/unicode_lib = dependency('icu-uc')/" meson.build
}

build() {
  cd "${_pkgname}"
  arch-meson build -D test=disabled
  ninja -C build
}

package() {
  cd "${_pkgname}"
  DESTDIR="${pkgdir}" ninja -C build install
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}