This commit is contained in:
abveritas 2010-07-21 20:27:58 +00:00
parent 873af36890
commit 569a2ba21f
3 changed files with 121 additions and 0 deletions

60
kadu/PKGBUILD Normal file
View File

@ -0,0 +1,60 @@
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kadu
pkgver=0.6.5.4
pkgrel=1
pkgdesc="A Qt-based Gadu-Gadu client"
arch=('i686' 'x86_64')
url="http://www.kadu.net/"
license=('GPL')
depends=('qt' 'libgadu' 'hicolor-icon-theme')
makedepends=('cmake' 'aspell' 'libao' 'libsndfile' 'libxtst' 'curl' 'qca' 'libxss')
conflicts=('kadu-svn')
install=$pkgname.install
source=(http://www.kadu.net/download/stable/$pkgname-$pkgver.tar.bz2
mod-weather.diff)
md5sums=('97cb72c0ab4b5cf897bfbfc3b5ac0379'
'e35a10647a48d3cff611ae6b20ebef07')
_static="sound_.+ icons_.+ emoticons_.+"
_disable="module_macosx_docking module_growl_notify module_dshow_sound module_win32_sound module_itunes_mediaplayer module_winamp_mediaplayer module_xmms_mediaplayer"
build() {
cd $srcdir/kadu
# kadu.net tends to get sluggish
sed -r -i 's/-T [0-9]+/-T 60/g' varia/scripts/autodownload
sed -r -i 's/(^[0-9a-z_]+=)[yn]$/\1m/' .config
for m in $_static; do
sed -r -i "s/^($m)=m/\1=y/" .config || return 1
done
for m in $_disable; do
sed -r -i "s/^($m)=m/\1=n/" .config || return 1
done
for p in $startdir/src/mod-*.diff; do
m=`basename $p .diff | sed 's/mod-\(.*\)/\1/'`
mkdir -p modules/patches/$m
cp $p modules/patches/$m
done
sed 's#set (LIBDIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})#set (LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)#' -i CMakeLists.txt
sed 's#set (MODULEDIR lib${LIB_SUFFIX}/kadu/modules)#set (MODULEDIR lib/kadu/modules)#' -i CMakeLists.txt
sed -i 's#module_phonon_sound=m#module_phonon_sound=n#' .config
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make || return 1
make DESTDIR=$pkgdir install || return 1
rm -rf $pkgdir/usr/{lib,include}/{libgadu*,pkgconfig}
rm -rf $pkgdir/usr/share/kadu/{HISTORY,README}
}

47
kadu/kadu.install Normal file
View File

@ -0,0 +1,47 @@
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
echo
echo "Below is a list of optional dependencies needed by certain modules:"
echo
echo " ----------------------- ------------------"
echo "| module | package |"
echo " ----------------------- ------------------"
echo "| ao_sound | libao |"
echo "| encryption | qca |"
echo "| idle | libxss |"
echo "| plus_pl_sms | curl |"
echo "| sound | libsndfile |"
echo "| spellchecker | aspell |"
echo "| xmms_mediaplayer | xmms |"
echo " ----------------------- ------------------"
echo
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}

14
kadu/mod-weather.diff Normal file
View File

@ -0,0 +1,14 @@
diff -ruN weather.orig/translations/weather_pl.ts weather/translations/weather_pl.ts
--- weather.orig/translations/weather_pl.ts 2008-01-22 20:28:27.000000000 +0100
+++ weather/translations/weather_pl.ts 2009-03-22 09:29:01.000000000 +0100
@@ -96,10 +96,6 @@
<translation>Powiadomienia</translation>
</message>
<message>
- <source>Notifications</source>
- <translation>Powiadomienia</translation>
- </message>
- <message>
<source>Display</source>
<translation>Wyświetlanie</translation>
</message>