Page 1 of 2

How to create xnview deb package for Ubuntu

Posted: Tue Nov 24, 2009 3:15 pm
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

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

Posted: Sun Nov 29, 2009 8:28 am
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!

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

Posted: Mon Nov 30, 2009 7:28 am
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.

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

Posted: Mon Nov 30, 2009 10:04 pm
by Mux
I had done so, no matter.
But thanks anyway.

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

Posted: Sat Mar 20, 2010 7:48 am
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 .

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

Posted: Sat Mar 20, 2010 8:03 pm
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".

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

Posted: Fri Apr 02, 2010 12:44 pm
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.

Re: How to create xnview deb package

Posted: Fri Apr 02, 2010 12:52 pm
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

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

Posted: Sun Apr 04, 2010 1:55 pm
by wubijacq
so xnviewmp0.25 avorted cause of Qt library with Mac and xnviewmp0.26 replace it

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

Posted: Sat Jul 24, 2010 3:41 am
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

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

Posted: Sat Jul 24, 2010 10:36 am
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.

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

Posted: Mon Aug 09, 2010 12:09 pm
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

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

Posted: Fri Aug 27, 2010 2:51 am
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

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

Posted: Fri Aug 27, 2010 4:02 pm
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.

Re: How to create xnview deb package for Ubuntu 10.04

Posted: Sun Sep 12, 2010 10:48 pm
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.