From 0a2b1eeb31400e539041c83cc1a5952f1c880917 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Aug 2013 03:06:29 -0700 Subject: Thu Aug 29 03:04:08 PDT 2013 --- extra/qt3/PKGBUILD | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'extra/qt3') diff --git a/extra/qt3/PKGBUILD b/extra/qt3/PKGBUILD index c92af9f04..942959ad4 100644 --- a/extra/qt3/PKGBUILD +++ b/extra/qt3/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 184426 2013-05-06 19:39:25Z foutrelis $ +# $Id: PKGBUILD 193687 2013-08-28 00:06:06Z eric $ # Maintainer: Eric BĂ©langer pkgname=qt3 pkgver=3.3.8b -pkgrel=5 +pkgrel=6 epoch=1 pkgdesc="A cross-platform application and UI framework" arch=('i686' 'x86_64') @@ -12,7 +12,8 @@ license=('GPL') depends=('libpng' 'libxmu' 'libxcursor' 'libxinerama' 'glu' 'libxft' 'libxrandr' 'libmng') makedepends=('mariadb' 'postgresql' 'unixodbc' 'sqlite' 'mesa') -optdepends=('libmariadbclient: MariaDB driver' +optdepends=('qtchooser: set the default Qt toolkit' + 'libmariadbclient: MariaDB driver' 'postgresql-libs: PostgreSQL driver' 'unixodbc: ODBC driver') options=('!libtool' '!docs') @@ -30,13 +31,8 @@ sha1sums=('745def6250dc7f337dbb265e20bf38dcb41fd854' # qt-copy-kde-patches come from http://websvn.kde.org/trunk/qt-copy/patches/ # other qt-patches come from fedora and gentoo -build() { - export QTDIR="${srcdir}"/qt-x11-free-${pkgver} - export PATH=${QTDIR}/bin:${PATH} - export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH} - export QMAKESPEC=$QTDIR/mkspecs/linux-g++ - - cd "${srcdir}"/qt-x11-free-${pkgver} +prepare() { + cd qt-x11-free-${pkgver} # apply qt patches from kde.org for i in ../qt-copy-kde-patches/*; do patch -p0 -i $i @@ -56,12 +52,20 @@ build() { sed -i "s|-O2|$CXXFLAGS|" mkspecs/linux-g++{,-32,-64}/qmake.conf sed -i "s|-I. |$CXXFLAGS -I. |" qmake/Makefile.unix sed -i "s|read acceptance|acceptance=yes|" configure +} + +build() { + export QTDIR="${srcdir}"/qt-x11-free-${pkgver} + 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 qt-x11-free-${pkgver} ./configure \ -prefix /usr \ -bindir /usr/lib/qt3/bin \ @@ -87,7 +91,7 @@ build() { } package() { - cd "${srcdir}"/qt-x11-free-${pkgver} + cd qt-x11-free-${pkgver} make INSTALL_ROOT="${pkgdir}" install sed -i -e "s|-L${srcdir}/qt-x11-free-${pkgver}/lib ||g" -e "s|${srcdir}/||g" "${pkgdir}"/usr/lib/*.prl rm -rf "${pkgdir}"/usr/share/qt3/{phrasebooks,templates,translations} -- cgit v1.2.3-54-g00ecf