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

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?

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.


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 ..
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 :


1 comment:

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