1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Description: Applications de base pour KDE 3
# URL: http://www.kde.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: kdelibs3, libidn, hal, mtools, cyrus-sasl, samba3, xorg-xprop, xorg-iceauth, desktop-file-utils
name=kdebase3
version=3.5.10
release=2
source=(http://mirrors.isc.org/pub/kde/stable/3.5.10/src/kdebase-$version.tar.bz2 \
kdebase-3.5.10-gcc44-1.patch \
kdebase-3.5.10-crypto-1.patch kdm Xsession ede.desktop lxde.desktop)
build() {
cd kdebase-$version
patch -Np1 -i ../kdebase-3.5.10-gcc44-1.patch
patch -Np1 -i ../kdebase-3.5.10-crypto-1.patch
./configure --prefix=/opt/kde \
--sysconfdir=/etc/kde3 \
--disable-debug \
--disable-dependency-tracking \
--enable-new-ldflags LDFLAGS="${LDFLAGS} -L/opt/kde/lib" \
--enable-final
make
make DESTDIR=$PKG GENKDMCONF_FLAGS="--no-old" install
mkdir -p $PKG/etc/profile.d/
cat > $PKG/etc/profile.d/kde3.sh << "EOF"
XDG_DATA_DIRS=/opt/kde/share:/usr/local/share:/usr/share
XDG_CONFIG_DIRS=/etc/kde3/xdg:/etc/xdg
export XDG_DATA_DIRS XDG_CONFIG_DIRS
EOF
# rm -rf $PKG/$KDE3_PREFIX/share/doc
mkdir -v -p $PKG/etc/rc.d/init.d
mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d
install -m755 ../kdm $PKG/etc/rc.d/init.d/
install -m755 ../Xsession $PKG/opt/kde/share/config/kdm/
install -m644 ../{ede.desktop,lxde.desktop} $PKG/opt/kde/share/apps/kdm/sessions/
ln -svf ../init.d/kdm $PKG/etc/rc.d/rc3.d/S40kdm
ln -svf ../init.d/kdm $PKG/etc/rc.d/rc5.d/K10kdm
ln -svf ../init.d/kdm $PKG/etc/rc.d/rc4.d/K10kdm
ln -svf ../init.d/kdm $PKG/etc/rc.d/rc0.d/K10kdm
ln -svf ../init.d/kdm $PKG/etc/rc.d/rc1.d/K10kdm
ln -svf ../init.d/kdm $PKG/etc/rc.d/rc6.d/K10kdm
sed -i "s/AllowRootLogin/#\ AllowRootLogin/" $PKG/opt/kde/share/config/kdm/kdmrc
sed -i "s@gnome-session@/usr/bin/gnome-session@" $PKG/opt/kde/share/apps/kdm/sessions/gnome.desktop
}
|