October 26, 2013

Viewnior, A Simple Pictureviewer



Viewnior is an image viewer program. Created to be simple, fast and elegant.

The download page shows that there is no package for Ubuntu....and so we need to compile to make a deb-package.

Download the source from here : http://cloud.github.com/downloads/xsisqox/Viewnior/viewnior-1.3.tar.gz

Go to Downloads in a terminal :
cd Downloads

First install the necessary tools :
sudo apt-get install build-essential intltool dh-make

Development libraries :

sudo apt-get install libgdk-pixbuf2.0-dev libgtk2.0-dev

Extract
tar xf viewnior-1.3.tar.gz 

mv viewnior-1.3.tar.gz viewnior-1.3/
cd viewnior-1.3

dh_make --createorig

It will ask :

Type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch?
 [s/i/m/l/k/n] 


Just type s. Then it will show you some package information that you can edit. Just hit Enter.
Next message :
Done. Please edit the files in the debian/ subdirectory now. viewnior
uses a configure script, so you probably don't have to edit the Makefiles.


dpkg-buildpackage 

At the end ( won't take much time ) :
dpkg-deb: building package `viewnior' in `../viewnior_1.3-1_amd64.deb'.
dpkg-genchanges  >../viewnior_1.3-1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build viewnior-1.3
dpkg-buildpackage: full upload (original source is included)


cd ..
ls
viewnior_1.3-1_amd64.changes  viewnior_1.3-1.debian.tar.gz  viewnior_1.3.orig.tar.gz
viewnior-1.3  viewnior_1.3-1_amd64.deb        viewnior_1.3-1.dsc


There it is : viewnior_1.3-1_amd64.deb......

Installation is done with gdebi, a simple tool to install deb files ( sudo apt-get install gdebi ).




Links :
http://forums.debian.net/viewtopic.php?t=38976

http://git.debian.org/?p=collab-maint/packaging-tutorial.git;a=blob_plain;f=packaging-tutorial.pdf;hb=refs/heads/pdf

1 comment:

  1. http://nomoreterminals.blogspot.com/2013/03/viewnior-13-precompiled-deb-packages.html

    https://launchpad.net/~lubuntu-dev/+archive/non-official-apps/+build/4323581/+files/viewnior_1.3.0-0ubuntu1%7Eppa1_i386.deb


    ReplyDelete

Note: Only a member of this blog may post a comment.