1 # Maintainer: Calvin Morrison <mutantturkey@gmail.com>
3 pkgname=trinity-kdebase
7 url='http://www.trinitydesktop.org'
9 groups=('trinity-base')
10 pkgdesc="Trinity - kdebase"
11 depends=('hal' 'libltdl' 'trinity-dbus-1-qt3' 'trinity-arts' 'trinity-qt3' 'trinity-pyqt3' 'trinity-dbus-tqt-1' 'trinity-dbus-tqt' 'trinity-kdelibs' 'openexr')
12 makedepends=('pkgconfig' 'cmake' 'autoconf' 'imake' 'xorg-bdftopcf')
13 optdepends=('desktop-file-utils: Command line utilities for working with desktop entries'
14 'pciutils: PCI bus configuration space access library and tools'
15 'xscreensaver: Screen saver and locker for the X Window System')
16 options=('libtool' '!strip')
17 source=('http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/kdebase-3.5.13.tar.gz' 'dbusfix.diff' 'kdm-trinity')
18 md5sums=('d1f7e1f94eeb46b981fe1ba144179840'
19 'c9ce810c281002440a6de8cfd8735d07'
20 '523838d16b38fc62445863ca762c17f8')
23 _prefix="/opt/trinity"
26 # create/install desktop
27 install -d -m755 ${pkgdir}/etc/X11/sessions
28 echo '[Desktop Entry]' > ${pkgdir}/etc/X11/sessions/trinity.desktop
29 echo 'Encoding=UTF-8' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
30 echo 'Type=XSession' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
31 echo "Exec=${_prefix}/bin/startkde" >> ${pkgdir}/etc/X11/sessions/trinity.desktop
32 echo "TryExec=${_prefix}/bin/startkde" >> ${pkgdir}/etc/X11/sessions/trinity.desktop
33 echo 'Name=Trinity' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
34 echo 'Comment=The Trinity Desktop Environment. A powerful Open Source graphical desktop environment' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
35 chmod 0755 ${pkgdir}/etc/X11/sessions/trinity.desktop
40 msg "Setting PATH, CMAKE and Trinity Environment variables"
41 if [[ -r /etc/profile.d/qt3.sh ]]; then
42 . /etc/profile.d/qt3.sh
43 [[ -n $QTDIR ]] && _qtdir=$QTDIR
45 [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
47 export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
48 export CMAKE_INCLUDE_PATH=/opt/trinity/include/dbus-1-tqt/:/opt/trinity/include/dbus-1.0/:/opt/trinity/include:/opt/trinity/include/libkrandr
49 export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:/opt/qt/lib:$LD_LIBRARY_PATH
50 export PKG_CONFIG_PATH=/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig:$PKG_CONFIG_PATH
53 patch -N ${srcdir}/kdebase/kioslave/media/mediamanager/halbackend.h < ${srcdir}/dbusfix.diff
56 msg "Creating out-of-source build directory: ${srcdir}/build"
60 msg "Starting cmake..."
61 cmake ${srcdir}/kdebase --debug-output \
62 -DCMAKE_INSTALL_PREFIX=${_prefix} \
63 -DCMAKE_VERBOSE_MAKEFILE=ON \
65 -DSYSCONF_INSTALL_DIR=/etc \
71 -DWITH_XCOMPOSITE=ON \
82 -DCMAKE_INCLUDE_DIR=/opt/trinity/include/dbus-1.0:/opt/qt/include/tqt:/opt/trinity/include/dbus-1.0
86 # -DQT_LIBRARY_DIRS=/opt/qt/lib \
90 msg "Packaging - $pkgname-$pkgver"
91 # cd ${srcdir}/${_svnmod}
94 make DESTDIR="$pkgdir/" install
98 # install desktop and update kdmrc and Xsession
99 # [[ -f trinity.desktop ]] && {
100 # install -d -m755 ${pkgdir}/etc/X11/sessions
101 # install -m644 trinity.desktop ${pkgdir}/etc/X11/sessions
104 [[ -f ${pkgdir}/etc/X11/sessions/trinity.desktop ]] || msg "ERROR - Install Failure: ${pkgdir}/etc/X11/sessions/trinity.desktop"
107 _kdmdir=${_prefix}/share/config/kdm
108 [[ -d ${pkgdir}/${_kdmdir} ]] || install -d -m755 ${pkgdir}/${_kdmdir}
111 [[ -f kdmrc ]] && install -m644 kdmrc ${pkgdir}/${_kdmdir}
113 # update the Xsession file
114 [[ -f Xsession ]] && install -m755 Xsession ${pkgdir}/${_kdmdir}
116 # create the starttrinity link
117 [[ -d ${pkgdir}/usr/bin ]] || mkdir -p ${pkgdir}/usr/bin
119 ln -sf /opt/trinity/bin/startkde starttrinity
122 install -D -m755 ./kdm-trinity "${pkgdir}"/etc/rc.d/kdm-trinity