summaryrefslogtreecommitdiff
path: root/extra/qt3/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qt3/PKGBUILD')
-rw-r--r--extra/qt3/PKGBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/extra/qt3/PKGBUILD b/extra/qt3/PKGBUILD
index cb1eee34b..ab15e1763 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 <eric@archlinux.org>
pkgname=qt3
pkgver=3.3.8b
-pkgrel=5
+pkgrel=6
epoch=1
pkgdesc="A cross-platform application and UI framework"
arch=('i686' 'x86_64' 'mips64el')
@@ -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}