summaryrefslogtreecommitdiffstats
path: root/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD
blob: cd9385df29e0a2cafb08e418b5a3b8f5ba21a18d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Calvin Morrison <MutantTurkey@gmail.com>
pkgname=trinity-qt3
pkgver=3884
pkgrel=1
pkgdesc="The Qt3 gui toolkit - with Trinity upstream"
_prefix="/opt/qt"
arch=('i686' 'x86_64')
license=('GPL')
url="http://trinitydesktop.org"
# install=qt.install
groups=('trinity-base')
depends=('libjpeg-turbo' 'libmng' 'libmysqlclient' 'libpng' 'libxmu'  'libxcursor' 'libxinerama' 'libxft' 'libxrandr' 'mesa' 'postgresql-libs' 'unixodbc')
makedepends=('cups' 'libxi' 'mysql' 'postgresql' 'unixodbc' 'sqlite3')
optdepends=()
# optdepends=('libmysqlclient' 'postgresql-libs' 'unixodbc')
provides=('trinity-qt3' 'qt3')
conflicts=('qt3' 'qt3-enhanced')
replaces=('trinity-qt3')
_prefix="opt/qt"
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/qt3-3.3.8.d.tar.gz)
md5sums=('78dc675e84aed595375449818cbb589a')
options=(!libtool)

build() {
 export QTDIR="${srcdir}/qt3/" 
 export PATH=${QTDIR}/bin:${PATH}
 export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
 export QMAKESPEC=$QTDIR/mkspecs/linux-g++
 
 if [ "$CARCH" = "x86_64" ]; then
     export ARCH="-64"
     else unset ARCH
fi

  cd "${srcdir}/qt3"

  rm -rf mkspecs/{*aix*,*bsd*,cygwin*,dgux*,darwin*,hpux*,hurd*,irix*,lynxos*,macx*,qnx*,reliant*,sco*,solaris*,tru64*,unixware*,win32*}

  msg "Starting configure..."
  #make -C qmake || return 1
 ./configure    -prefix ${_prefix} \
                -fast \
                -sysconfdir /etc/qt \
                -thread \
                -shared \
                -system-zlib \
                -platform linux-g++$ARCH \
                -system-lib{png,jpeg,mng} 
  make  

}

package() {
 cd "$srcdir/qt3"

  # Build and install qt.profile
  echo "export QTDIR=/${_prefix}" > ${srcdir}/qt.profile
  echo "export QT_XFT=true" >> ${srcdir}/qt.profile
  echo 'export PATH=$PATH:$QTDIR/bin' >> ${srcdir}/qt.profile
  echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QTDIR/pkgconfig' >> ${srcdir}/qt.profile
  install -D -m755 ${srcdir}/qt.profile ${pkgdir}/etc/profile.d/qt3.sh
 
  make INSTALL_ROOT="$pkgdir/" install

}