25 lines
856 B
Plaintext
25 lines
856 B
Plaintext
# Description: fast, lightweight image viewer for wayland and X11
|
|
# URL: https://git.sr.ht/~exec64/imv
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
# Depends on: icu libpthread-stubs libxkbcommon pango inih
|
|
# Optional: libjpeg-turbo libpng libtiff libheif libjxl libwebp librsvg egl-wayland xorg-libxcb asciidoc
|
|
|
|
name=imv
|
|
version=5.0.1
|
|
release=1
|
|
source=(https://git.sr.ht/~exec64/$name/archive/v$version.tar.gz)
|
|
renames=($name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-v$version
|
|
|
|
prt-get isinst xorg-libxcb && DISPLAY_IMV="-D windows=x11"
|
|
prt-get isinst egl-wayland && DISPLAY_IMV="-D windows=all"
|
|
prt-get isinst asciidoc && MAN_IMV="-D man=enabled" || MAN_IMV="-D man=disabled"
|
|
|
|
meson setup build --buildtype=release --prefix=/usr $DISPLAY_IMV $MAN_IMV
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR="$PKG" ninja -C build install
|
|
}
|