updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / trinity-kdelibs / PKGBUILD
blob24f0534d3f30cdaadeeb92bee2af86a3f2ba7618
1 # Maintainer: Calvin Morrison <mutantturkey@gmail.com>
3 pkgname=trinity-kdelibs
4 pkgver=3513
5 pkgrel=2
6 arch=('i686' 'x86_64')
7 url='http://www.trinitydesktop.org'
8 license=('GPL')
9 groups=('trinity-base')
10 pkgdesc="Trinity - kdelibs, core libraries"
11 depends=('libical'
12         'libxslt'
13             'libltdl'
14         'avahi'
15         'pam-krb5'
16         'taglib'
17         'libxcomposite'
18         'trinity-arts')
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')
28 qtdir=/opt/qt
29 trinity_prefix="/opt/trinity"
31 build() {
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
37   else
38     [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
39   fi
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
45   cd $srcdir
46   msg "Creating out-of-source build directory: ${srcdir}/build"
47   mkdir -p build
48   cd build
50   msg "Starting cmake..."
51   cmake ${srcdir}/kdelibs \
52     -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
53     -DCMAKE_VERBOSE_MAKEFILE=OFF \
54     -DQT_VERSION=3 \
55     -DWITH_QT3=ON \
56     -DQTDIR=/opt/qt \
57     -DQT_LIBRARY_DIRS=/opt/qt/lib \
58     -DWITH_PAM=ON \
59     -DBUILD_ALL=ON
60   make
63 package() {
64   msg "Packaging - $pkgname-$pkgver"
65   cd ${srcdir}/build
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}