mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 14:57:16 +08:00
kadu update
This commit is contained in:
parent
ca7d2c0c36
commit
e21fdf0b3c
@ -1,5 +1,5 @@
|
||||
#
|
||||
# KDE SC Packages for Chakra, part of chakra-project.org
|
||||
# Apps 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>
|
||||
@ -8,53 +8,28 @@
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=kadu
|
||||
pkgver=0.6.5.4
|
||||
pkgver=0.10.0
|
||||
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')
|
||||
depends=('libgadu' 'aspell' 'phonon' 'libxss' 'qca-ossl' 'libidn')
|
||||
makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl' )
|
||||
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"
|
||||
source=(http://download.kadu.im/stable/$pkgname-$pkgver.tar.bz2)
|
||||
sha1sums=('1150f86bee44383094ac2ca39c6e714f6082193d')
|
||||
|
||||
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
|
||||
|
||||
cd $srcdir/kadu-$pkgver
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=/usr
|
||||
make || return 1
|
||||
make DESTDIR=$pkgdir install || return 1
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/kadu-$pkgver
|
||||
make DESTDIR=$pkgdir install
|
||||
rm -rf $pkgdir/usr/{lib,include}/{libgadu*,pkgconfig}
|
||||
rm -rf $pkgdir/usr/share/kadu/{HISTORY,README}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user