1 # Contributor: Lisa Denia <eiffel56@gmail.com>
5 pkgdesc="KDE Base Programs"
7 url="http://www.kde.org"
9 depends=('kdelibs2>=2.2.2-2' fam libgl cdparanoia xorg-utils xorg-server pam libgl libldap libogg libvorbis)
10 makedepends=(automake-1.5 autoconf-2.5 svn imake libtool)
11 source=(kdebase-2.2.2_gcc43fix4.patch.bz2
12 ksysguard-2.2.2_disable-lmsensors.patch.gz
13 kdebase-2.2.2_kcontrol_PAGE_SHIFT_fix.patch.gz
14 kdebase-2.2.2_audiocd_lamefix.patch.gz
15 kdebase-2.2.2_missingfiles.patch.bz2)
16 md5sums=('b3eb4e67b9e646dc4795c97ef57a8edd'
17 'bcade9b1bb27bd4f27ccff3337360af3'
18 'ace579af50523560ca18f9c36a2dcd75'
19 'cf821cecb02405b509f003cdef27984a'
20 '3f74e087c7962bc8d1f7a18d9f49b074')
25 if [ -f $startdir/kdebase.tar.gz ]; then
26 tar -xf $startdir/kdebase.tar.gz || return 1
28 if [ ! -d kdelibs ]; then
29 svn co svn://anonsvn.kde.org/home/kde/tags/KDE/$pkgver/kdebase kdebase || return 1
32 [ -e kdebase-build ] && rm -Rf kdebase-build
33 cp -R kdebase kdebase-build || return 1
36 patch -p1 -i ${srcdir}/kdebase-2.2.2_gcc43fix4.patch || return 1
37 patch -p1 -i ${srcdir}/ksysguard-2.2.2_disable-lmsensors.patch || return 1
38 patch -p1 -i ${srcdir}/kdebase-2.2.2_audiocd_lamefix.patch || return 1
40 patch -p1 -i ${srcdir}/kdebase-2.2.2_kcontrol_PAGE_SHIFT_fix.patch || return 1
42 patch -p1 -i ${srcdir}/kdebase-2.2.2_missingfiles.patch || return 1
44 source /opt/qt2/env.sh
45 export PATH=/opt/autoconf-2.5/bin:/opt/automake-1.5/bin:$PATH
46 mkdir -p $pkgdir/opt/kde2
53 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
54 sed 's/|| mv $CONFIG_STATUS.bak $CONFIG_STATUS;//g' -i configure
55 CXXFLAGS+=" -fpermissive" ./configure --with-qt-dir=$QTDIR --prefix=/opt/kde2
57 make install DESTDIR=$pkgdir/ || return 1