$yum install gcc gcc-c++ libgcc qt-devel -y
$yum install git -y
$mkdir ~/psi-dev
$cd ~/psi-dev $git clone git://git.psi-im.org/psi.git psi $cd psi $git submodule init $git submodule update $git pull $git submodule update
$cd ~/psi-dev $svn co http://psi-dev.googlecode.com/svn/trunk/patches/ $cp ~/psi-dev/patches/*diff ~/psi-dev/psi $cd ~/psi-dev/psi $cat *.diff|patch -p1
(Except in the version information will be Psi + 0.15.xxx)
$pkgrel=`svnversion "home/$USER/psi-dev/patches"` $cd src $sed "s/\(.xxx\)/.${pkgrel}/" -i "applicationinfo.cpp"
$cd ~/psi-dev/psi $qconf $./configure --enable-plugins --enable-qtwebkit
Type this for see all other options:
$./configure --help
If the configuration is successful then in the end we see:
Good, your configure finished. Now run /usr/bin/gmake.
If it so then proceed to the compilation.
$make
If the compilation done without errors then proceed to install.
$su -c ' make install'
$cd ~/psi-dev/psi $svn co --force http://psi-dev.googlecode.com/svn/trunk/iconsets/ iconsets
or
$cd /usr/share/psi/ $svn co --force http://psi-dev.googlecode.com/svn/trunk/iconsets/ iconsets
If the iconsets does not appear then copy the /usr/local/share/psi/ .
Before the build plugin you must comply with paragraphs 1-5 of the basic instructions and at the same time fulfill:
$mkdir /usr/share/psi/plugins
Then download the source code of plugin (look at the example of Stop Spam Plugin):
$cd ~/psi-dev/psi/src/plugins/generic/ $svn co http://psi-dev.googlecode.com/svn/trunk/generic/stopspamplugin $cd stopspamplugin/ $qmake-qt4 $make $cp lib*.so /usr/share/psi/plugins/
Note: Do not forget to add the option – enable-plugins before build.
If the plugin does not appear in Psi+ then run the following command:
$cp lib*.so /usr/local/share/psi/plugins/
$cd /usr/share/psi $wget http://psi-ru.googlecode.com/svn/branches/psi-plus/psi_ru.qm $wget http://psi-ru.googlecode.com/svn/branches/psi-plus/psi_ru.ts
If you need to install Russian localization only for myself then put the files in ~/.psi, instead /usr/…
This script will automatically build Psi+ with iconsets and emoticons
#!/bin/sh mkdir ~/psi-dev cd ~/psi-dev git clone git://git.psi-im.org/psi.git cd psi git submodule init git submodule update git pull git submodule update cd ~/psi-dev svn co http://psi-dev.googlecode.com/svn/trunk/patches/ cp ~/psi-dev/patches/*diff ~/psi-dev/psi cd ~/psi-dev/psi cat *.diff|patch -p1 pkgrel=`svnversion "home/$USER/psi-dev/patches"` cd src sed "s/\(.xxx\)/.${pkgrel}/" -i "applicationinfo.cpp" cd .. svn co --force http://psi-dev.googlecode.com/svn/trunk/iconsets/ iconsets ./configure make make install