diff options
author | Pawel "l0ner" Soltys <[email protected]> | 2012-01-29 12:23:45 +0100 |
---|---|---|
committer | Pawel "l0ner" Soltys <[email protected]> | 2012-01-29 12:23:45 +0100 |
commit | 98886dc721fb7e85b1eaf1eaa602ccf9a938b2b7 (patch) | |
tree | 450948099ee9f15addae924c37efa34990e8d23d | |
parent | 6895aaef8c871c1601b03ffebd7e20ae633d3b58 (diff) | |
download | tde-packaging-98886dc721fb7e85b1eaf1eaa602ccf9a938b2b7.tar.gz tde-packaging-98886dc721fb7e85b1eaf1eaa602ccf9a938b2b7.zip |
qt3: changed installation prefix
-rw-r--r-- | arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD b/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD index ec462d651..68a2923fc 100644 --- a/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD +++ b/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD @@ -23,7 +23,7 @@ source=('http://mirror.ets.kth.se/trinity/releases/3.5.13/dependencies/qt3-3.3.8 md5sums=('78dc675e84aed595375449818cbb589a' 'a4b569f217d17cb1231c18aa48ecae20') -_prefix="/opt/qt" +_prefix="/opt/qt3" build() { msg "Patching source code..." @@ -163,21 +163,21 @@ package() { msg "Cleaning package..." - rm -rf "${pkgdir}"/opt/qt/{phrasebooks,templates,translations} - sed -i "s|-L${srcdir}/qt3/lib ||g" "${pkgdir}"/opt/qt/lib/*.prl - rm -f "${pkgdir}"/opt/qt/mkspecs/linux-g++$ARCH/linux-g++$ARCH + rm -rf "${pkgdir}"$_prefix/{phrasebooks,templates,translations} + sed -i "s|-L${srcdir}/qt3/lib ||g" "${pkgdir}"$_prefix/lib/*.prl + rm -f "${pkgdir}"${_prefix}/mkspecs/linux-g++$ARCH/linux-g++$ARCH # Fix issues with GCC4 - sed -i 's/\(char\*\)/const char*/g' $pkgdir/opt/qt/include/*.h + sed -i 's/\(char\*\)/const char*/g' $pkgdir$_prefix/include/*.h # Fix the mess we did fixing issues with GCC4 - sed -i 's/const u char/const uchar/g' $pkgdir/opt/qt/include/*.h - sed -i 's/u const char/const uchar/g' $pkgdir/opt/qt/include/*.h - sed -i 's/const const/const/g' $pkgdir/opt/qt/include/*.h - sed -i 's/uconst/ unsigned /g' $pkgdir/opt/qt/include/*.h + sed -i 's/const u char/const uchar/g' $pkgdir$_prefix/include/*.h + sed -i 's/u const char/const uchar/g' $pkgdir$_prefix/include/*.h + sed -i 's/const const/const/g' $pkgdir$_prefix/include/*.h + sed -i 's/uconst/ unsigned /g' $pkgdir$_prefix/include/*.h - sed -ie 's/define QTIMER_H/&\n#include "qglobal.h"/g' $pkgdir/opt/qt/include/qtimer.h + sed -ie 's/define QTIMER_H/&\n#include "qglobal.h"/g' $pkgdir$_prefix/include/qtimer.h - install -D -m755 qmake/qmake "${pkgdir}"/opt/qt/bin/qmake + install -D -m755 qmake/qmake "${pkgdir}"$_prefix/bin/qmake # Build ld.so.conf file install -d -m755 ${pkgdir}/etc/ld.so.conf.d/ @@ -190,19 +190,19 @@ package() { echo "export PATH+=:${_prefix}/bin" >> ${pkgdir}/etc/profile.d/qt3.sh echo "export PKG_CONFIG_PATH+=:${_prefix}/pkgconfig" >> ${pkgdir}/etc/profile.d/qt3.sh - # ln -sf /opt/qt/bin/qtconfig "${pkgdir}"/opt/qt/bin/qt3config + # ln -sf $_prefix/bin/qtconfig "${pkgdir}"$_prefix/bin/qt3config # install man pages - install -d -m755 "${pkgdir}"/opt/qt/man - cp -r "${srcdir}"/qt3/doc/man/{man1,man3} "${pkgdir}"/opt/qt/man/ + install -d -m755 "${pkgdir}"$_prefix/man + cp -r "${srcdir}"/qt3/doc/man/{man1,man3} "${pkgdir}"$_prefix/man/ # libtoolslay find $startdir/pkg -name '*.la' -exec rm {} \; # Arch64 fix #if [ "$CARCH" = "x86_64" ]; then - # [ -d $pkgdir/opt/qt/mkspecs/linux-g++ ] || mkdir $pkgdir/opt/qt/mkspecs/linux-g++ - # cd $pkgdir/opt/qt/mkspecs/linux-g++ + # [ -d $pkgdir$_prefix/mkspecs/linux-g++ ] || mkdir $pkgdir$_prefix/mkspecs/linux-g++ + # cd $pkgdir$_prefix/mkspecs/linux-g++ # ln -s -v ../linux-g++-64/* . #fi |