1 # Maintainer: Calvin Morrison <mutantturkey@gmail.com>
3 pkgname=trinity-kdelibs
7 url='http://www.trinitydesktop.org'
9 groups=('trinity-base')
10 pkgdesc="Trinity - kdelibs, core libraries"
19 makedepends=('pkgconfig' 'cmake' 'autoconf' )
20 provides=('trinity-kdelibs' 'kdelibs3')
21 conflicts=('trinity-kdelibs' 'kdelibs3')
22 replaces=('trinity-kdelibs')
23 options=('libtool' '!strip' '!makeflags')
24 source=('http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/kdelibs-3.5.13.tar.gz' 'trinity.sh')
25 md5sums=('f62eefb63b4ba2141b4c576f859806dd'
26 '2de1886d632c8bc288befada5e1bc3b5')
29 trinity_prefix="/opt/trinity"
33 msg "Setting PATH, CMAKE and Trinity Environment variables"
34 if [[ -r /etc/profile.d/qt3.sh ]]; then
35 . /etc/profile.d/qt3.sh
36 [[ -n $QTDIR ]] && _qtdir=$QTDIR
38 [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
40 export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
41 export PATH=$PATH:$trinity_prefix/bin
42 export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/bin
43 export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/qt/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
46 msg "Creating out-of-source build directory: ${srcdir}/build"
50 msg "Starting cmake..."
51 cmake ${srcdir}/kdelibs \
52 -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
53 -DCMAKE_VERBOSE_MAKEFILE=OFF \
57 -DQT_LIBRARY_DIRS=/opt/qt/lib \
64 msg "Packaging - $pkgname-$pkgver"
67 make DESTDIR="$pkgdir/" install
69 install -d -m755 ${pkgdir}/etc/ld.so.conf.d/
70 echo "${trinity_prefix}/lib" > ${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf
72 install -d -m755 ${pkgdir}/etc/profile.d/
73 install -m644 ${startdir}/trinity.sh ${pkgdir}/etc/profile.d/
75 # rm -r ${srcdir}/${_svnmod}