cruxports/imv/Pkgfile

21 lines
797 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
version=4.3.1
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 < $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
2022-12-23 08:52:45 -05:00
ninja -C build -j ${JOBS:-1}
2022-02-05 15:39:19 -05:00
DESTDIR=$PKG ninja -C build install
}