diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-20 20:20:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-20 20:20:39 -0600 |
commit | 3604961da7fb258a7f6fe34a08cd60bf58bcf3cb (patch) | |
tree | bdcffc4947c45a9da868d7a191db4cc7e02ac33f /arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD | |
parent | a9a3e888fa1f8290730fabd0c5aebd1eb6bbb21c (diff) | |
parent | aa67f69e3bd294588f63825b744c31c95ec1a849 (diff) | |
download | tde-packaging-3604961da7fb258a7f6fe34a08cd60bf58bcf3cb.tar.gz tde-packaging-3604961da7fb258a7f6fe34a08cd60bf58bcf3cb.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD')
-rw-r--r-- | arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD | 94 |
1 files changed, 49 insertions, 45 deletions
diff --git a/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD b/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD index fc6f77062..8ab9c0110 100644 --- a/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD +++ b/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD @@ -1,74 +1,78 @@ # Maintainer: Calvin Morrison <MutantTurkey@gmail.com> + pkgname=trinity-qt3 pkgver=3884 pkgrel=2 -pkgdesc="The Qt3 gui toolkit - with Trinity upstream" -_prefix="/opt/qt" arch=('i686' 'x86_64') -license=('GPL') url="http://trinitydesktop.org" -# install=qt.install +license=('GPL') groups=('trinity-base') +pkgdesc="The Qt3 gui toolkit - with Trinity upstream" 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" +options=(!libtool) source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/qt3-3.3.8.d.tar.gz) md5sums=('78dc675e84aed595375449818cbb589a') -options=(!libtool) + +_prefix="/opt/qt" +_builddir="qt3" +# install=qt.install 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 + msg "Setting enviroment variables..." + export QTDIR="${srcdir}/${_builddir}/" + 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 + fi - cd "${srcdir}/qt3" + cd "${srcdir}/${_builddir}" - rm -rf mkspecs/{*aix*,*bsd*,cygwin*,dgux*,darwin*,hpux*,hurd*,irix*,lynxos*,macx*,qnx*,reliant*,sco*,solaris*,tru64*,unixware*,win32*} + 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 + 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} \ + -qt-gif \ + -cups + msg "Building - $pkgname..." + make } -package() { - - cd "$srcdir/qt3" - - # Build ld.so.conf file - echo "/${_prefix}" > ${srcdir}/libqt-mt.conf - echo "/${_prefix}/lib" >> ${srcdir}/libqt-mt.conf - echo "/opt/trinity/lib" >> ${srcdir}/libqt-mt.conf - install -d -m755 ${pkgdir}/etc/ld.so.conf.d/ - install -D -m755 ${srcdir}/libqt-mt.conf ${pkgdir}/etc/ld.so.conf.d/libqt-mt.conf +package() { + msg "Packaging - $pkgname-$pkgver" + cd "$srcdir/${_builddir}" - # 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 - + # Build ld.so.conf file + echo "${_prefix}" > ${srcdir}/libqt-mt.conf + echo "${_prefix}/lib" >> ${srcdir}/libqt-mt.conf + echo "/opt/trinity/lib" >> ${srcdir}/libqt-mt.conf + # install -d -m755 ${pkgdir}/etc/ld.so.conf.d/ + install -D -m755 ${srcdir}/libqt-mt.conf ${pkgdir}/etc/ld.so.conf.d/libqt-mt.conf - make INSTALL_ROOT="$pkgdir/" install + # 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 } |