Commit 6a5a6db3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add XnViewMP support

parent 1ae3456f
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=XnViewMP
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "XnView MP: Image management from the official site" && exit
repack='--repack'
arch=$($DISTRVENDOR --distro-arch)
case $arch in
x86_64|amd64)
;;
*)
fatal "Unsupported arch $arch for $($DISTRVENDOR -d)"
esac
epm install https://download.xnview.com/XnViewMP-linux-x64.deb
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
ln -s /lib64/libbz2.so.1 $BUILDROOT/opt/XnView/lib/libbz2.so.1.0
subst "s|%files|%files\n/opt/XnView/lib/libbz2.so.1.0|" $SPEC
#subst '1Requires:bzlib' $SPEC
subst '1iAutoReq:yes,noperl' $SPEC
subst '1iAutoProv:no' $SPEC
# ignore embedded libs
for i in libQt5 libav libcrypto.so libdbus-1.so libicu liblibraw.so libssl.so libswresample libswscale libva libvdpau ; do
subst "1i%filter_from_requires /^$i.*/d" $SPEC
done
epm install --skip-installed bzlib fontconfig libalsa libcairo libcups libdrm libfreetype /usr/bin/perl zlib libXv glib2 libatk libcairo-gobject libEGL libgdk-pixbuf libgio libGL libgst-plugins1.0 libgstreamer1.0 libgtk+2 libgtk+3 libhalf12 libiex12 libilmthread12 libpango libpulseaudio libsqlite3 libwebp7 libX11 libxcb libxcb-render-util libXcomposite libXext libXfixes libxkbcommon libxkbcommon-x11 libXrender
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment