How to create xnview deb package for Ubuntu

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

How to create xnview deb package for Ubuntu

Postby mplex » Tue Nov 24, 2009 3:15 pm

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 329 times
Last edited by mplex on Fri Jun 08, 2012 2:42 am, edited 8 times in total.
mplex
 
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

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

Postby Mux » Sun Nov 29, 2009 8:28 am

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!
Mux
 
Posts: 2
Joined: Sun Nov 29, 2009 8:09 am

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

Postby mplex » Mon Nov 30, 2009 7:28 am

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.
mplex
 
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

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

Postby Mux » Mon Nov 30, 2009 10:04 pm

I had done so, no matter.
But thanks anyway.
Mux
 
Posts: 2
Joined: Sun Nov 29, 2009 8:09 am

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

Postby wubijacq » Sat Mar 20, 2010 7:48 am

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 .
User avatar
wubijacq
 
Posts: 38
Joined: Fri Mar 19, 2010 7:51 pm

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

Postby mplex » Sat Mar 20, 2010 8:03 pm

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".
mplex
 
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

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

Postby Simon6 » Fri Apr 02, 2010 12:44 pm

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/xnviewmp_sim_0_26b_ubuntu9_10_i386.deb.html
MD5: FB4F37FA4DB0E371C4C17A29CF7332BD


I hope my experience can be useful to anyone

Bye.
Simon6
 
Posts: 1
Joined: Fri Apr 02, 2010 12:25 pm

Re: How to create xnview deb package

Postby oops66 » Fri Apr 02, 2010 12:52 pm

See here too: (Voir aussi ici) - for 32 and/or 64 bits:
viewtopic.php?p=83374#p83374
.deb Download:
http://doc.ubuntu-fr.org/xnview_mp#telechargement
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64
User avatar
oops66
XnThusiast
 
Posts: 1998
Joined: Tue Jul 17, 2007 1:17 am
Location: France

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

Postby wubijacq » Sun Apr 04, 2010 1:55 pm

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.
User avatar
wubijacq
 
Posts: 38
Joined: Fri Mar 19, 2010 7:51 pm

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

Postby werebear » Sat Jul 24, 2010 3:41 am

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
werebear
 
Posts: 1
Joined: Sat Jul 24, 2010 3:35 am

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

Postby oops66 » Sat Jul 24, 2010 10:36 am

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 0.82 Linux X64 - Ubuntu 16.04 LTS - X64
User avatar
oops66
XnThusiast
 
Posts: 1998
Joined: Tue Jul 17, 2007 1:17 am
Location: France

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

Postby wubijacq » Mon Aug 09, 2010 12:09 pm

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.
User avatar
wubijacq
 
Posts: 38
Joined: Fri Mar 19, 2010 7:51 pm

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

Postby Silversleeves » Fri Aug 27, 2010 2:51 am

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
Silversleeves
 
Posts: 95
Joined: Mon Nov 27, 2006 6:12 pm
Location: Nordestlich VSA

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

Postby wubijacq » Fri Aug 27, 2010 4:02 pm

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.
User avatar
wubijacq
 
Posts: 38
Joined: Fri Mar 19, 2010 7:51 pm

Re: How to create xnview deb package for Ubuntu 10.04

Postby mplex » Sun Sep 12, 2010 10:48 pm

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.
mplex
 
Posts: 6
Joined: Tue Nov 24, 2009 2:29 pm

Next

Return to MP - Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests