How to create xnview deb package for Ubuntu

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

mplex
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

How to create xnview deb package for Ubuntu

Post by mplex »

You can use the attached script to create a deb package for xnviewmp. Prior to running this script please make sure you have the following packages installed.

Code: Select all

sudo apt-get install wget tar gzip dpkg coreutils sed gdebi
  1. Download the attachment to this post
  2. Extract the install-xnviewmp script to your desktop
  3. Go to your desktop folder

    Code: Select all

    cd ~/Desktop
  4. Make the install-xnviewmp script executable

    Code: Select all

    chmod +x install-xnviewmp
  5. Run the install script

    Code: Select all

    ./install-xnviewmp -a
  6. A deb package will be created in your desktop folder and will automatically be installed
You can specify the xnviewmp download url with the following option.

Code: Select all

install-xnviewmp -u "http://download.xnview.com/XnViewMP-linux.tgz"
You can specify the xnviewmp version with the option below.

Code: Select all

install-xnviewmp -v "0.35"
To display a help message

Code: Select all

install-xnviewmp -h
To display the current download url and version

Code: Select all

install-xnviewmp -i
Uninstall
sudo dpkg -r xnviewmp
Attachments
install-xnviewmp.tar.gz
Script to auto-generate and install a xnviewmp deb package.
(2.63 KiB) Downloaded 745 times
Last edited by mplex on Fri Jun 08, 2012 2:42 am, edited 8 times in total.
Mux
Posts: 2
Joined: Sun Nov 29, 2009 8:09 am

Re: How to create xnview deb package for Ubuntu Karmic (9.10)

Post by Mux »

Hello, I get this error: Fehler: Abhängigkeit kann nicht erfüllt werden: ia32-libs (>= 2.7ubuntu17)
Maybe the reason is, I use Ubuntu 9.04 32bit.
1. What can I do?
2. Can I remove the Folder "xnviewmp" from desktop to the trash?

Thanks!
mplex
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10)

Post by mplex »

If you're running Ubuntu 32-bit then change the Architecture line to "Architecture: i386" and remove the "Depends:" line.
The control file for 32-bit systems should look like the following.

Code: Select all

Package: xnviewmp
Version: 0.21b
Architecture: i386
Installed-Size: 37213
Section: graphics
Priority: optional
Maintainer: None <none@none.com>
Homepage: http://www.xnview.com
Description: XnViewMP image viewer and converter.
  Software to view and convert graphic files in more
  than 400 graphics formats.
Once the deb package has been built you can then delete the xnviewmp folder.
Mux
Posts: 2
Joined: Sun Nov 29, 2009 8:09 am

Re: How to create xnview deb package for Ubuntu Karmic (9.10)

Post by Mux »

I had done so, no matter.
But thanks anyway.
User avatar
wubijacq
Posts: 42
Joined: Fri Mar 19, 2010 7:51 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10)

Post by wubijacq »

hello mplex I have done a copy-paste of your code and i put the resulting DEB on download at http://www.wubijacq.com/creerunpaquetdeb/ . hoping some feedbacks .
mplex
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10)

Post by mplex »

You may want to update the package for v0.25. There are only a couple of lines that need changing.

In the xnviewmp/usr/sbin/xnviewmp file change vers="0.21" to vers="0.25".

In the xnviewmp/DEBIAN/control file change "Version: 0.21b" to "Version: 0.25".
Simon6
Posts: 1
Joined: Fri Apr 02, 2010 12:25 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10)

Post by Simon6 »

Hello to everyone!

I built the deb package following mplex instruction ( thank you very much ), but it did not work immediatly.
I had to do the following:

Step 1
In file: ~/xnviewmp/usr/sbin/xnviewmp i have changed

From:
if [ -z "$1" ] ; then
/usr/lib/XnViewMP/xnview
else
/usr/lib/XnViewMP/xnview $1
fi

To:
if [ -z "$1" ] ; then
/usr/lib/XnViewMP/xnview.sh
else
/usr/lib/XnViewMP/xnview.sh $1
fi


Step 2
Renamed the directory
~/xnviewmp/usr/lib/XnViewMP-026
to
~/xnviewmp/usr/lib/XnViewMP


I have uninstalled the package and I have rebuild a new one.
The new package can be found at:

http://rapidshare.com/files/371125307/x ... 6.deb.html
MD5: FB4F37FA4DB0E371C4C17A29CF7332BD


I hope my experience can be useful to anyone

Bye.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: How to create xnview deb package

Post by oops66 »

See here too: (Voir aussi ici) - for 32 and/or 64 bits:
http://newsgroup.xnview.com/viewtopic.p ... 374#p83374
.deb Download:
http://doc.ubuntu-fr.org/xnview_mp#telechargement
XnViewMP Linux X64 - Debian - X64
User avatar
wubijacq
Posts: 42
Joined: Fri Mar 19, 2010 7:51 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10

Post by wubijacq »

so xnviewmp0.25 avorted cause of Qt library with Mac and xnviewmp0.26 replace it
Last edited by wubijacq on Wed Sep 15, 2010 8:56 pm, edited 2 times in total.
werebear
Posts: 1
Joined: Sat Jul 24, 2010 3:35 am

Re: How to create xnview deb package for Ubuntu Karmic (9.10

Post by werebear »

Hello,

Just wanted to confirm I was able to install XnViewMP 0.26 Beta on Ubuntu 10.04 using directions in this thread.

Make sure to follow the modifications that Simon6 posted.

Great program, but please post an official .deb!

thanks from Chicago

Barry
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: How to create xnview deb package for Ubuntu Karmic (9.10

Post by oops66 »

werebear wrote:Hello,
Just wanted to confirm I was able to install XnViewMP 0.26 Beta on Ubuntu 10.04 using directions in this thread.
Make sure to follow the modifications that Simon6 posted.
Great program, but please post an official .deb!
thanks from Chicago
Barry
Hello Barry,
For information, you already have the ability to download the latest .deb package of XnViewMP linux version (ver. 32 or 64 bits) here (French Ubuntu link):
http://doc.ubuntu-fr.org/xnview_mp#telechargement

But I agree, 2 official .deb packages from xnview.com would be much better.
XnViewMP Linux X64 - Debian - X64
User avatar
wubijacq
Posts: 42
Joined: Fri Mar 19, 2010 7:51 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10

Post by wubijacq »

hello werebear i read again recommendations of simon6, i tested one more time and i succeeded to create 2 xnviewmp0.32b_amd64 deb : one for jaunty the other for karmic, automatically upgradable from the v0.21b or v0.26b or any DEB i have done before. i have put a tgz file with the code to create them at http://www.wubijacq.com/xnviewmp/index.html
Last edited by wubijacq on Thu Jan 06, 2011 11:39 am, edited 7 times in total.
Silversleeves
Posts: 95
Joined: Mon Nov 27, 2006 6:12 pm
Location: Nordestlich VSA
Contact:

Re: How to create xnview deb package for Ubuntu Karmic (9.10

Post by Silversleeves »

Has no-one here heard of the "checkinstall" command?

Does anybody know whether or not the "ordinary" diff utils work on Debian package files like the ones for K/Ubuntu, or whether the repo's have special ones with GUI wraps that can be used.

Approaching this "one-size-fits-all-in-9.10=&-later" installer/uninstaller idea from just outside the lines of one kind of architecture (and hoping a hack-edit will suffice for all others in a hardware world with zero minimum standards manufacturer to manufacturer) just seems a fool's errand. Get an install that works, make your own "working" deb out of the result install immediately via checkinstall, and keep bugging Canonical to put Pierre's marvellous idea (one graphics app of superb and unique functions on three plats) in the repo's so updates, uninstalls and such can be handled by Add/Remove, Synaptic or aptitude in Konsole or G-Terminal.

Have a day.

BZT
User avatar
wubijacq
Posts: 42
Joined: Fri Mar 19, 2010 7:51 pm

Re: How to create xnview deb package for Ubuntu Karmic (9.10

Post by wubijacq »

I know Checkinstall and Debhelper, do you really think it is better to create DEB for XnViewMP using these tools? The matter now is that we have two different deb packages cause archive tgz have not been decompressed in the same directory: decompressed in usr/lib for the deb i put to download and decompressed in opt for the non-official deb hizoka put to download on ubuntu forum.fr. So no matter you may do: apt-get remove xnviewmp. As there are not yet official DEB packages and as i get a website i have put on download XnViewMP 0.34 for i386 and XnViewMP 0.34 amd64 for Karmic and lucid . So you may find prefabricated DEB packages in a tgz file at: http://www.wubijacq.com/xnviewmp/ . So you should may build your own DEB in your own language. I think it is so easy as a very beginner can do that just copy-paste code.
Last edited by wubijacq on Tue Jan 11, 2011 8:29 pm, edited 7 times in total.
mplex
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

Re: How to create xnview deb package for Ubuntu 10.04

Post by mplex »

I've updated and simplified this guide for Ubuntu Lucid (10.04). A bash script has been created and attached to the first post in this thread that will auto-generate and install the deb package. Please post any bugs you discover in the install script.
Post Reply