# -*-shell-script-*-

[Meta]
RootName: @kmess.sourceforge.net/kmess:$SOFTWAREVERSION
DisplayName: KMess
ShortName: kmess
SoftwareVersion: 1.4.3
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]
# KMess still supports 3.1 with #ifdef KDE_IS_VERSION(..) hacks.
# Because we want to have a clean binary, use 3.2 as minimum requirement.
require @kde.org/kdelibs 3.2

[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

