Package Details: xnviewmp 0.97.1-1

Git Clone URL: https://aur.archlinux.org/xnviewmp.git (read-only, click to copy)
Package Base: xnviewmp
Description: An efficient multimedia viewer, browser and converter.
Upstream URL: http://www.xnview.com/en/xnviewmp/
Keywords: graphics
Licenses: custom
Submitter: oliwer
Maintainer: Corax
Last Packager: Corax
Votes: 273
Popularity: 1.87
First Submitted: 2008-07-25 19:01
Last Updated: 2020-10-18 20:38

Pinned Comments

Corax commented on 2017-01-21 15:34

I have created a new package: xnviewmp-system-libs. This is exactly the same build, except that the bundled Qt/icu libs are removed. Please try it if you want to use XnView without the bundled libs, and discuss any issue related to this configuration here: https://aur.archlinux.org/packages/xnviewmp-system-libs/. Do keep in mind that this is an experimental package though, and things may break when I try to fix other things...

Corax commented on 2017-01-20 21:49

If makepkg fails because the checksum is incorrect, please flag the package out-of-date and I will update the PKGBUILD.

Upstream does not version the released archives and does not announce new releases either, so the checksum is bound to become wrong every time there is a new release, and there's nothing I can do about that.

tastyminerals commented on 2012-11-16 23:08

libpng12 dependency was removed from AUR, you can download it here http://sourceforge.net/projects/libpng/files/libpng12/

Anonymous comment on 2012-06-26 14:13

Thank you asphantix, the PKGBUILD has been updated.

Anonymous comment on 2012-06-26 13:29

md5sums are outdated. These are the new ones:

565f20bdd6bb46130324cb5a74b24f45 XnViewMP-linux.tgz
8889f9e5392ca140c9de10504581dfa0 XnViewMP-linux-x64.tgz

Anonymous comment on 2012-06-13 12:46

@Meow

Actually, Pierre, the author of Xnview, uses its custom version of Qt. That's why there is a lot of Qt libraries in the Xnview package and there is no direct dependency with the Qt package thus. I suggest to keep the custom Qt libs to guarantee all the features of XnviewMP. However, I've updated the PKGBUILD according to your suggestions. Thank you.

Meow commented on 2012-06-13 11:59

and this is the install file:
#############################
post_install() {
update-desktop-database -q /usr/share/applications
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
#############################
P.S variable reference without double quotes is a very bad habit if you can't guarantee that definitely no white space there in it.

Meow commented on 2012-06-13 11:44

I made a little tweak of your PKGBUILD:
######################################
pkgname=xnviewmp
pkgver=0.50
pkgrel=9
pkgdesc='An efficient multimedia viewer, browser and converter (beta release).'
url='http://newsgroup.xnview.com/viewtopic.php?f=60&t=25892'

arch=('x86_64' 'i686')
license=('custom')
depends=('glib2' 'expat' 'libpng12' 'qtwebkit')

source=('http://download.xnview.com/XnViewMP-linux.tgz')
md5sums=('bc26ba6427fc969c823c28813fe32724')

[ "$CARCH" = 'x86_64' ] && source[0]='http://download.xnview.com/XnViewMP-linux-x64.tgz' \
&& md5sums[0]='c3271268196486ae4505f362722213dc'
install=$pkgname.install

package() {
install -d -m755 "${pkgdir}"/opt/${pkgname}
install -d -m755 "${pkgdir}"/usr/bin
install -d -m755 "${pkgdir}"/usr/share/applications

rm "$srcdir"/XnView/lib/libQt*
rm "$srcdir"/XnView/lib/libphonon*

cp -R "${srcdir}"/XnView/* "${pkgdir}"/opt/${pkgname}

ln -s /opt/${pkgname}/xnview.sh "${pkgdir}"/usr/bin/${pkgname}
cat <<-_EOF_ > "$pkgdir"/usr/share/applications/xnviewmp.desktop
[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=xnviewmp
Icon=/opt/xnviewmp/xnview.png
Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
MimeType=image/bmp;image/gif;image/x-portable-bitmap;image/x-portable-pixmap;image/x-psd;image/x-tga;image/x-xbitmap;image/tiff;image/jpeg;image/x-psd;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;
_EOF_

}

Anonymous comment on 2012-06-13 08:53

Pierre has updated all the packages this morning. md5sum checksums: fixed.
Thank you karol_007.

karol_007 commented on 2012-06-13 08:30

==> Validating source files with md5sums...
XnViewMP-linux.tgz ... FAILED
XnView.desktop ... Passed

The correct one seems to be bc26ba6427fc969c823c28813fe32724.

Anonymous comment on 2012-06-13 06:13

Fixed! Thank you mehanoid.

mehanoid commented on 2012-06-12 23:30

It requires libpng12, please add in dependencies