| 1 | # -*-shell-script-*- |
|---|
| 2 | |
|---|
| 3 | [Meta] |
|---|
| 4 | RootName: @gajim.org/gajim:$SOFTWAREVERSION |
|---|
| 5 | DisplayName: Gajim Jabber Client |
|---|
| 6 | ShortName: gajim |
|---|
| 7 | Maintainer: The Gajim Developers <gajim-devel-subscribe@gajim.org> |
|---|
| 8 | Packager: Filippos Papadopoulos <filip@cs.uoi.gr> |
|---|
| 9 | Summary: Gajim is a Jabber client written in Python. |
|---|
| 10 | URL: http://www.gajim.org/ |
|---|
| 11 | License: GNU General Public License, Version 2 |
|---|
| 12 | SoftwareVersion: 0.7.1 |
|---|
| 13 | AutopackageTarget: 1.0 |
|---|
| 14 | PackageVersion: 1 |
|---|
| 15 | |
|---|
| 16 | # Only uncomment InterfaceVersion if your package exposes interfaces to other software, |
|---|
| 17 | # for instance if it includes DSOs or python/perl modules. See the developer guide for more info, |
|---|
| 18 | # or ask on autopackage-dev if you don't understand interface versioning in autopackage. |
|---|
| 19 | # |
|---|
| 20 | # InterfaceVersion: 0.0 |
|---|
| 21 | |
|---|
| 22 | [Description] |
|---|
| 23 | Gajim is a jabber client written in PyGTK. The goal of Gajim is to provide a full featured and easy to use xmpp client for the GTK+ users. Gajim does not require GNOME to run, eventhough it exists with it nicely. Gajim is released under the GNU General Public License. Features: Tabbed chat windows, Groupchat support (with MUC protocol), Emoticons, URL grabber, Systray icon, GPG support, Multiple accounts support and much more! |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | [BuildPrepare] |
|---|
| 27 | echo "-------==========$USER i am making the package...===============------" |
|---|
| 28 | export build_root="/tmp/build-root.$$" |
|---|
| 29 | echo "Build root is $build_root" |
|---|
| 30 | mkdir "$build_root" |
|---|
| 31 | make PREFIX=$build_root CC=apgcc CXX=apg++ || exit 1 |
|---|
| 32 | make install PREFIX=$build_root CC=apgcc CXX=apg++ || exit 1 |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | [BuildUnprepare] |
|---|
| 37 | unprepareBuild |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | [Imports] |
|---|
| 41 | echo '*' | import |
|---|
| 42 | import <<EOF |
|---|
| 43 | $source_dir/gajim.desktop |
|---|
| 44 | $source_dir/gajim.1 |
|---|
| 45 | EOF |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | [Prepare] |
|---|
| 49 | # Dependency checking |
|---|
| 50 | #PyGTK 2.4 requires python 2.3 |
|---|
| 51 | |
|---|
| 52 | require @python.org/python 2.3 |
|---|
| 53 | require @gtk.org/gtk 2.4 |
|---|
| 54 | require @gnome.org/pygtk 2.4 |
|---|
| 55 | require @glade.gnome.org/libglade 2 |
|---|
| 56 | recommend @gtkspell.sourceforge.net/gtkspell 0 |
|---|
| 57 | |
|---|
| 58 | [Install] |
|---|
| 59 | # Put your installation script here |
|---|
| 60 | |
|---|
| 61 | copyFiles lib/gajim "$PREFIX/lib" |
|---|
| 62 | copyFiles share/gajim "$PREFIX/share/" |
|---|
| 63 | installIcon share/pixmaps/gajim.png |
|---|
| 64 | installDesktop "Network/Instant Messaging" gajim.desktop |
|---|
| 65 | installMan 1 gajim.1 |
|---|
| 66 | #In the following safeSed we assume that the original Makefile is a bit modified so that to be relocatable by AP |
|---|
| 67 | #so you have to manually remove the sed in Makefile for AP to work |
|---|
| 68 | safeSed bin/gajim "s!PREFIX!$PREFIX!g" |
|---|
| 69 | installExe bin/* |
|---|
| 70 | chmod +x "$PREFIX/bin/gajim" |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | [Uninstall] |
|---|
| 75 | # Usually just the following line is enough to uninstall everything |
|---|
| 76 | uninstallFromLog |
|---|