cruxports/imv/Pkgfile

24 lines
795 B
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# Description: fast, lightweight image viewer for wayland and X11
# URL: https://git.sr.ht/~exec64/imv
# Maintainer: John McQuah, jmcquah at disroot dot org
2022-12-23 08:52:45 -05:00
# Depends on: icu libpthread-stubs libxkbcommon pango inih
# Optional: libjpeg-turbo libpng libtiff librsvg libfreeimage-lite egl-wayland xorg-libxcb asciidoc
2022-02-05 15:39:19 -05:00
name=imv
2023-02-10 20:48:16 -05:00
version=4.4.0
2022-02-05 15:39:19 -05:00
release=1
source=(https://git.sr.ht/~exec64/$name/archive/v$version.tar.gz freeimagelite.patch)
renames=($name-$version.tar.gz SKIP)
build() {
2023-02-10 20:48:16 -05:00
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
2022-02-05 15:39:19 -05:00
}