| 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 <psybases@gmail.com> |
|---|
| 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.10 |
|---|
| 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 |
|---|
| 24 | client for the GTK+ users. Gajim does not require GNOME to run, eventhough it exists with it nicely. Gajim is |
|---|
| 25 | released under the GNU General Public License. Features: Tabbed chat windows, Groupchat support (with MUC protocol), |
|---|
| 26 | File tranfers, Emoticons, URL grabber, Systray icon, GPG support, Multiple accounts support and much more! |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | [BuildPrepare] |
|---|
| 31 | echo "-------==========$USER i am making the package...===============------" |
|---|
| 32 | export build_root="/tmp/build-root.$$" |
|---|
| 33 | echo "Build root is $build_root" |
|---|
| 34 | mkdir "$build_root" |
|---|
| 35 | make PREFIX=$build_root CC=apgcc CXX=apg++ || exit 1 |
|---|
| 36 | make install PREFIX=$build_root CC=apgcc CXX=apg++ || exit 1 |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | [BuildUnprepare] |
|---|
| 41 | unprepareBuild |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | [Imports] |
|---|
| 45 | echo '*' | import |
|---|
| 46 | import <<EOF |
|---|
| 47 | $source_dir/gajim.desktop |
|---|
| 48 | $source_dir/gajim.1 |
|---|
| 49 | EOF |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | [Prepare] |
|---|
| 53 | # Dependency checking |
|---|
| 54 | |
|---|
| 55 | require @python.org/python 2.4 |
|---|
| 56 | require @python.org/python-xml 2.4 |
|---|
| 57 | require @gtk.org/gtk 2.6 |
|---|
| 58 | |
|---|
| 59 | ########The 2.5 version is for SUSE 9.3 |
|---|
| 60 | require @gnome.org/pygtk 2.5 |
|---|
| 61 | require @gnome.org/pyglade 2.5 |
|---|
| 62 | require @glade.gnome.org/libglade 2 |
|---|
| 63 | require @pysqlite.org/pysqlite 2 |
|---|
| 64 | recommend @gtkspell.sourceforge.net/gtkspell 0 |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | [Install] |
|---|
| 68 | # Put your installation script here |
|---|
| 69 | |
|---|
| 70 | copyFiles lib/gajim "$PREFIX/lib" |
|---|
| 71 | copyFiles share/gajim "$PREFIX/share/" |
|---|
| 72 | installLocale share/locale |
|---|
| 73 | installIcon share/pixmaps/gajim.png |
|---|
| 74 | installDesktop "Network/Instant Messaging" gajim.desktop |
|---|
| 75 | installMan 1 gajim.1 |
|---|
| 76 | #In the following safeSed we assume that the original Makefile is a bit modified so that to be relocatable by AP |
|---|
| 77 | #so you have to manually remove the sed in Makefile for AP to work |
|---|
| 78 | safeSed bin/gajim "s!PREFIX!$PREFIX!g" |
|---|
| 79 | safeSed bin/gajim-remote "s!PREFIX!$PREFIX!g" |
|---|
| 80 | installExe bin/* |
|---|
| 81 | chmod +x "$PREFIX/bin/gajim" |
|---|
| 82 | chmod +x "$PREFIX/bin/gajim-remote" |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | [Uninstall] |
|---|
| 86 | # Usually just the following line is enough to uninstall everything |
|---|
| 87 | uninstallFromLog |
|---|