updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / trinity-qt3 / PKGBUILD
blobfc6f77062b592391222ed1b9fe53a8393959d0cb
1 # Maintainer: Calvin Morrison <MutantTurkey@gmail.com>
2 pkgname=trinity-qt3
3 pkgver=3884
4 pkgrel=2
5 pkgdesc="The Qt3 gui toolkit - with Trinity upstream"
6 _prefix="/opt/qt"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="http://trinitydesktop.org"
10 # install=qt.install
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')
14 optdepends=()
15 # optdepends=('libmysqlclient' 'postgresql-libs' 'unixodbc')
16 provides=('trinity-qt3' 'qt3')
17 conflicts=('qt3' 'qt3-enhanced')
18 replaces=('trinity-qt3')
19 _prefix="opt/qt"
20 source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/qt3-3.3.8.d.tar.gz)
21 md5sums=('78dc675e84aed595375449818cbb589a')
22 options=(!libtool)
24 build() {
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
31      export ARCH="-64"
32      else unset ARCH
35   cd "${srcdir}/qt3"
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} \
42                 -fast \
43                 -sysconfdir /etc/qt \
44                 -thread \
45                 -shared \
46                 -system-zlib \
47                 -platform linux-g++$ARCH \
48                 -system-lib{png,jpeg,mng} 
49   make  
53 package() {
54   
55   cd "$srcdir/qt3"
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
70   
72   make INSTALL_ROOT="$pkgdir/" install
74