Category: Packaging


Create debian package for IOK

IOK (Indic Onscreen Keyboard)
This is a GUI for various keyboard layoutsiok1
But IOK is not in Debian package formate, it is available in .rpm only. Here i get the source of IOK and create .deb package from that.
Download the source tarball from here https://fedorahosted.org/iok/

$ mkdir iok
$ cd iok
$ cp /home/suji/iok-1.3.6.tar.gz .
$ tar xvzf iok-1.3.6.tar.gz
$ mv iok-1.3.6.tar.gz iok_1.3.6.orig.tar.gz
$ cd iok-1.3.6
$ dh_make -e suji87.msc@gmail.com
$ debuild -S -k<keyid>
$ cd ..
$ dpkg -i iok_1.3.6-1_i386.deb

How to upload the package for review

$ dput revu package_version_source.changes

$ sudo apt-get install git git-core

$ git –version git version 1.6.0.4

$ mkdir xkb

$ cd xkb

$ git clone git://anongit.freedesktop.org/xkeyboard-config

Initialized empty Git repository in /home/suji/x/xkeyboard-config/.git/
remote: Counting objects: 7880, done. remote: Compressing objects: 100% (2995/2995), done.
remote: Total 7880 (delta 5995), reused 6363 (delta 4830)
Receiving objects: 100% (7880/7880), 2.33 MiB | 5 KiB/s, done.
Resolving deltas: 100% (5995/5995), done.

$ cd xkeyboard-config/symbols

$ gedit inĀ  // modify the in file

$ git status

# On branch master
# Changed but not updated:
# (use “git add …” to update what will be committed)
#
# modified: in
#
# Untracked files:
# (use “git add …” to include in what will be committed)
#
# in~ no changes added to commit (use “git add” and/or “git commit -a”)

$ git diff

diff –git a/symbols/in b/symbols/in
index bb616fd..861792d 100644
— a/symbols/in
+++ b/symbols/in
@@ -744,20 +744,25 @@ xkb_symbols “tam_unicode” {
name[Group1]= “India – Tamil Unicode”; –
// granthas
– key { [ U0b83 ] } ;
– key { [ U0b9c ] } ;
– key { [ U0bb7 ] } ;
– key { [ U0bb8 ] } ;
– key { [ U0bb9 ] } ;
+ // granthas
+ key { [ U0031 ] } ;
+ key { [ U0032 ] } ;
+ key { [ U0033 ] } ;
+ key { [ U0034 ] } ;
+ key { [ U0035 ] } ;
+ key { [ U0036 ] } ;
+ key { [ U0037 ] } ;
+ key { [ U0038 ] } ;
+ key { [ U0039 ] } ;
+ key { [ U0030 ] } ;
// Qrow
– key { [ U0b9e ] };
– key { [ U0bb1 ] };
– key { [ U0ba8 ] };
– key { [ U0b9a ] };
– key { [ U0bb5 ] };
– key { [ U0bb2 ] };
+ key { [ U0b9e, U0b83 ] };
+ key { [ U0bb1, U0b9c ] };
+ key { [ U0ba8, U0bb7 ] };
+ key { [ U0b9a, U0bb8 ] };
+ key { [ U0bb5, U0bb9 ] };
+ key { [ U0bb2, U0bb6 ] };
key { [ U0bb0 ] };
key { [ U0bc8, U0b90 ] };
key { [ U0bca, U0bcb ] };

$ git add in

$ git commit -s

Created commit 5eece39: Signed-off-by: Suji A 1 files changed, 16 insertions(+), 11 deletions(-)

$ git format-patch HEAD~1

symbols/0001-Signed-off-by-Suji-A-suji87.msc-gmail.com.patch