summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9eafe06ea01401ea396ed20a0ca1754015704042 (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: norbert.pfeiler ät gmail.com

_ghuser=jcupitt
_name=vipsdisp
pkgname=$_name-git
pkgver=2.4.1+3.g1f28388
pkgrel=1
pkgdesc='displays an image with libvips and gtk+4; can display huge images quickly and without using much memory; supports many scientific and technical image formats.'
url=https://github.com/$_ghuser/$_name
license=(unknown)
arch=(x86_64)
provides=($_name)
makedepends=(git meson cmake)
depends=(libvips openjpeg2 gtk4)
source=(git+$url)

prepare() {
	meson setup build $_name --prefix /usr --libexecdir=lib --sbindir=bin --sharedstatedir=share --buildtype=release
}
pkgver() {
	git -C $_name describe --always --dirty --tags | sed 's/-/+/; s/-/./; s/v//' | sed 's/:/;/g; s|/|\\\\|g; s/ /~/g'
}
build() {
	meson configure build
	meson compile -C build
}
check() {
	meson test -C build
}
package() {
	env DESTDIR=$pkgdir meson install -C build
}
sha256sums=('SKIP')