1 # Maintainer: Calvin Morrison <MutantTurkey@gmail.com>
5 pkgdesc="The Qt3 gui toolkit - with Trinity upstream"
9 url="http://trinitydesktop.org"
11 groups=('trinity-base')
12 depends=('libjpeg-turbo' 'libmng' 'libmysqlclient' 'libpng' 'libxmu' 'libxcursor' 'libxinerama' 'libxft' 'libxrandr' 'mesa' 'postgresql-libs' 'unixodbc')
13 makedepends=('cups' 'libxi' 'mysql' 'postgresql' 'unixodbc' 'sqlite3')
15 # optdepends=('libmysqlclient' 'postgresql-libs' 'unixodbc')
16 provides=('trinity-qt3' 'qt3')
17 conflicts=('qt3' 'qt3-enhanced')
18 replaces=('trinity-qt3')
20 source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/qt3-3.3.8.d.tar.gz)
21 md5sums=('78dc675e84aed595375449818cbb589a')
25 export QTDIR="${srcdir}/qt3/"
26 export PATH=${QTDIR}/bin:${PATH}
27 export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
28 export QMAKESPEC=$QTDIR/mkspecs/linux-g++
30 if [ "$CARCH" = "x86_64" ]; then
37 rm -rf mkspecs/{*aix*,*bsd*,cygwin*,dgux*,darwin*,hpux*,hurd*,irix*,lynxos*,macx*,qnx*,reliant*,sco*,solaris*,tru64*,unixware*,win32*}
39 msg "Starting configure..."
40 #make -C qmake || return 1
41 ./configure -prefix ${_prefix} \
47 -platform linux-g++$ARCH \
48 -system-lib{png,jpeg,mng}
57 # Build ld.so.conf file
58 echo "/${_prefix}" > ${srcdir}/libqt-mt.conf
59 echo "/${_prefix}/lib" >> ${srcdir}/libqt-mt.conf
60 echo "/opt/trinity/lib" >> ${srcdir}/libqt-mt.conf
61 install -d -m755 ${pkgdir}/etc/ld.so.conf.d/
62 install -D -m755 ${srcdir}/libqt-mt.conf ${pkgdir}/etc/ld.so.conf.d/libqt-mt.conf
64 # Build and install qt.profile
65 echo "export QTDIR=/${_prefix}" > ${srcdir}/qt.profile
66 echo "export QT_XFT=true" >> ${srcdir}/qt.profile
67 echo 'export PATH=$PATH:$QTDIR/bin' >> ${srcdir}/qt.profile
68 echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QTDIR/pkgconfig' >> ${srcdir}/qt.profile
69 install -D -m755 ${srcdir}/qt.profile ${pkgdir}/etc/profile.d/qt3.sh
72 make INSTALL_ROOT="$pkgdir/" install