User Tools

Site Tools


en:fedora

This is an old revision of the document!


Psi+ on Fedora Linux

Psi+ Build Instructions

Installing required packages for build

$yum install gcc gcc-c++ libgcc qt-devel -y

Installation of GIT utility for download Psi source code

$yum install git -y

Create a folder for building process

$mkdir ~/psi-dev

Downloading the source code from the Psi GIT repository

$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

Applying Patches

$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

Assigning revision number

(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"

Compiling source code and configuration

$cd ~/psi-dev/psi
$qconf
$./configure --enable-plugins --enable-qtwebkit

Build options

  • –enable-plugins - plugins support
  • –enable-qtwebkit - support for animated emoticons

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.

Compilation

$make

If the compilation done without errors then proceed to install.

Installation

$su -c ' make install'

Установка дополнительных компонентов

Смайлики и иконки Psi+

  • На этапе установки:
$cd ~/psi-dev/psi
$svn co --force http://psi-dev.googlecode.com/svn/trunk/iconsets/ iconsets

или

  • После установки:
$cd /usr/share/psi/
$svn co --force http://psi-dev.googlecode.com/svn/trunk/iconsets/ iconsets

Если иконки не появились, то скопируйте в /usr/local/share/psi/

Плагины Psi+

Перед сборкой плагинов необходимо выполнить пункты 1-5 основной части и заодно выполнить:

$mkdir /usr/share/psi/plugins

После чего качаем исходный код плагина (рассмотрим на примере 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/

Примечание: Не забываем добавить опцию –enable-plugins при сборке

Если плагин не появился в Psi+, то выполните следующую команду:

$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

Если необходимо установить русификатор только для себя, то поместите файлы в ~/.psi, вместо /usr/…

Скрипт автоматической сборки Psi+ с иконками и смайлами

#!/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
en/fedora.1284040036.txt.gz · Last modified: 2010/10/17 15:36 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki