blob: d575a3a1ab0c5e17ca95e9169e00c10558fedb24 (
plain)
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
47
48
49
50
51
52
53
54
55
56
|
# 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=3
source=(http://mirrors.isc.org/pub/kde/stable/3.5.10/src/kdebase-$version.tar.bz2 \
http://nutyx.meticul.eu/files/patchs/$name/kdebase-3.5.10-gcc44-1.patch \
http://nutyx.meticul.eu/files/patchs/$name/kdebase-3.5.10-crypto-1.patch \
http://nutyx.meticul.eu/files/patchs/$name/NuTyX_logo_attapu.png \
http://nutyx.meticul.eu/files/patchs/$name/NuTyX_Wall_attapu.jpg \
kdm Xsession)
build() {
cd kdebase-$version
patch -Np1 -i ../kdebase-3.5.10-gcc44-1.patch
patch -Np1 -i ../kdebase-3.5.10-crypto-1.patch
# export DO_NOT_COMPILE=kpersonalizer
sed -i "s/KDE34.png/NuTyX_Wall_attapu.jpg/g" \
kpersonalizer/keyecandypage.cpp
./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
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/
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/default_blue.jpg/NuTyX_Wall_attapu.jpg/" $PKG/opt/kde/share/config/kdm/backgroundrc
sed -i "s/kdelogo.png/NuTyX_logo_attapu.png/" $PKG/opt/kde/share/config/kdm/kdmrc
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
install -p -m 644 ../NuTyX_logo_attapu.png $PKG/opt/kde/share/apps/kdm/pics/NuTyX_logo_attapu.png
install -p -m 644 ../NuTyX_Wall_attapu.jpg $PKG/opt/kde/share/wallpapers/NuTyX_Wall_attapu.jpg
sed -i "s/KDE34.png/NuTyX_Wall_attapu.jpg/" \
$PKG/opt/kde/share/apps/kthememanager/themes/Plastik/Plastik.xml
}
|