1 # Contributor: Lisa Denia <eiffel56@gmail.com>
5 pkgdesc="KDE Core Libraries"
7 url="http://www.kde.org"
9 depends=('qt2>=2.3.2-2' glib2 python audiofile fam libxslt libxext libsm libcups libtiff audiofile pcre bzip2 libcups libsasl openssl alsa-lib)
10 makedepends=(automake-1.5 autoconf-2.5 svn imake bison flex gettext)
11 source=(kdelibs-2.2.2_missingfiles.patch.bz2
12 kdelibs-2.2.2_gcc43fix6.patch.bz2
13 kdelibs-2.2.2_force_alsa09.patch.gz)
14 md5sums=('565e867ae5b8133442454d9290e6e61f'
15 'd2efba1ccf3da2f456304d0f89e586f7'
16 '12ba8135625befc18a2e949e9b2e6f45')
21 if [ -f $startdir/kdelibs.tar.gz ]; then
22 tar -xf $startdir/kdelibs.tar.gz
24 if [ ! -d kdelibs ]; then
25 svn co svn://anonsvn.kde.org/home/kde/tags/KDE/$pkgver/kdelibs kdelibs
28 [ -e kdelibs-build ] && rm -Rf kdelibs-build
29 cp -R kdelibs kdelibs-build
32 patch -p1 -i ${srcdir}/kdelibs-2.2.2_gcc43fix6.patch || return 1
33 patch -p1 -i ${srcdir}/kdelibs-2.2.2_missingfiles.patch || return 1
34 patch -p1 -i ${srcdir}/kdelibs-2.2.2_force_alsa09.patch || return 1
36 source /opt/qt2/env.sh
37 export PATH=/opt/autoconf-2.5/bin:/opt/automake-1.5/bin:$PATH
38 mkdir -p $pkgdir/opt/kde2
45 sed 's%perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS%perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS || mv $CONFIG_STATUS.bak $CONFIG_STATUS;%g' -i configure
46 sed 's/|| mv $CONFIG_STATUS.bak $CONFIG_STATUS;//g' -i configure
47 CXXFLAGS+=" -fpermissive" ./configure --with-qt-dir=$QTDIR --prefix=/opt/kde2/
49 make install DESTDIR=$pkgdir/ || return 1