Skip to content

Latest commit

 

History

History

libpurple

##PubNub plugin for Pidgin, Adium and other libpurple based messengers.

###Components In general, for each chat client, you will be dealing with two main components:

  • The PubNub common library
  • The chat-client specific plugin (Adium, Pidgin/Finch)

Adium (Mac Only)

The XCode project source for Adium can be found at https://github.com/pubnub/c/tree/master/examples/libpurple (Be sure you have installed the PubNub libpurble client before trying to run the plugin.)

Building Pidgin/Finch plugin for Linux

  1. $ sudo apt-get install libpurple-dev libevent-dev libjson0-dev libcurl4-openssl-dev libssl-dev
  2. $ git clone git://github.com/pubnub/c
  3. $ cd c
  4. $ make
  5. $ sudo make install
  6. $ cd examples/libpurple
  7. $ make deb # optionaly
  8. $ sudo make install

Building Pidgin/Finch for Mac

  1. $ install macports (macports.org)
  2. $ sudo port install pidgin +finch
  3. $ sudo port install json-c
  4. $ sudo port install libevent
  5. $ git clone https://github.com/pubnub/c.git
  6. $ cd c/libpubnub
  7. $ make -f Makefile.darwin
  8. $ sudo make -f Makefile.darwin install
  9. $ cd ../examples/libpurple
  10. $ make
  11. $ mkdir -p ~/.purple/plugins
  12. $ cp libpubnub.so ~/.purple/plugins

Configuration (Common for Mac and Linux)

Now that it installed, here’s how to configure it for your account:

  • Restart Pidgin.
  • Open “Manage Accounts”.
  • Click “New…”
  • Select the “Pubnub” protocol.
  • Enter your username and the publish/subscribe keys.
  • Save the account.
  • Now you can send/receive messages on channels (via join a chat room).