# -*-shell-script-*- [Meta] RootName: @kmess.sourceforge.net/kmess:$SOFTWAREVERSION DisplayName: KMess ShortName: kmess SoftwareVersion: 1.5pre1 Maintainer: The KMess Developers Packager: Diederik van der Boor Summary: MSN Messenger client for KDE URL: http://kmess.sourceforge.net/ License: GNU General Public License, Version 2 AutopackageTarget: 1.0 [Description] A MSN Messenger Client for KDE KMess is a MSN Messenger client for Linux. It enables Linux users to chat with friends online who are using MSN Messenger in Windows or Mac OS. The strength of KMess is it's integration with the KDE desktop environment, focus on MSN Messenger specific features and an easy-to-use interface. [BuildPrepare] # The bogus deps solve our warnings about older distro incompatiblity export APBUILD_BOGUS_DEPS='art_lgpl art_lgpl_2 dl expat fontconfig freetype GL ICE idn kdefx kdesu kwalletclient m nsl png pthread resolv SM util X11 Xcursor Xft Xi Xinerama Xmu Xrandr Xrender' # Xrender is suggested by makeinstaller, # the XScreenSaver stuff can be either in libXss or libXext export APBUILD_STATIC='Xrender Xext Xss' prepareBuild [BuildUnprepare] unprepareBuild [Imports] # tells autopackage to include all files created by "make install" # make sure the symlink does not get installed. recreate it during Install find . -name common -type d -o -type l -exec rm -Rf {} \; echo "*" | import [Prepare] # KDE 3.2 is the minimum requirement, KDE 3.1 support has been dropped in 1.5-pre1 require @kde.org/kdelibs 3.2 # flash and cabextract are used for winks. playWinks="1" # test for cabextract outputTest "cabextract" if locateCommand -r "cabextract" "-v"; then outputTestPass else outputTestFail playWinks="0" fi # test for flash # paths taken from Konqueror. outputTest "flash player" hasFlash="0" for i in /usr/lib/browser-plugins $HOME/.netscape/plugins /usr/lib64/browser-plugins /usr/local/netscape/plugins /opt/mozilla/plugins /opt/mozilla/lib/plugins /opt/netscape/plugins /opt/netscape/communicator/plugins /usr/lib/netscape/plugins /usr/lib/netscape/plugins-libc5 /usr/lib/netscape/plugins-libc6 /usr/lib/mozilla/plugins /usr/lib64/netscape/plugins /usr/lib64/mozilla/plugins $MOZILLA_HOME/plugins do if [ -e "$i/libflashplayer.so" ] then hasFlash="1" fi done if [ "$hasFlash" -eq "1" ]; then outputTestPass else outputTestFail playWinks="0" fi # notify user if [ "$playWinks" -eq "0" ]; then outputStatus "You need to have cabextract and a flash player installed to play winks" # don't abort, KMess can operate without these deps. fi [Install] # # force to use the KDE path, workarround for broken distro's # # which don't support XDG/KDE stuff in /usr or /usr/local # test "`id -u`" -eq 0 && export PREFIX="`getKdePrefix`" || true outputStatus "Installing application..." installExe bin/* installData share/apps/ share/doc/ share/sounds/ linkFile --silent "`getKdePrefix`/share/doc/HTML/en/common" "$PREFIX/share/doc/HTML/en/kmess/common" installIcon share/icons/hicolor/ share/icons/locolor/ installDesktop "Internet" share/applications/kde/kmess.desktop installLocale share/locale/ [Uninstall] uninstallFromLog