cruxports/imv/Pkgfile

24 lines
795 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 librsvg libfreeimage-lite egl-wayland xorg-libxcb asciidoc
name=imv
version=4.5.0
release=1
source=(https://git.sr.ht/~exec64/$name/archive/v$version.tar.gz freeimagelite.patch)
renames=($name-$version.tar.gz SKIP)
build() {
cd $name-v$version
prt-get isinst libfreeimage-lite && patch -p1 -i $SRC/freeimagelite.patch
prt-get isinst asciidoc && MAN_IMV="-D man=enabled" || MAN_IMV="-D man=disabled"
meson setup build --buildtype=release --prefix=/usr $MAN_IMV
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}