Advertisement
Guest User

qt.Slackbuild-qt-4.7.3

a guest
Aug 27th, 2011
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.13 KB | None | 0 0
  1. --- qt.SlackBuild        2011-03-26 04:59:18.000000000 +1000
  2. +++ qt.SlackBuild       2011-08-28 11:27:40.797336751 +1000
  3. @@ -37,8 +37,8 @@
  4.  # wget http://qt.gitorious.org/qt/kde-qt/archive-tarball/4.6.2-patched
  5.  
  6.  PKGNAM=qt
  7. -VERSION=$(ls qt-*.tar.?z* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)
  8. -BUILD=${BUILD:-3}
  9. +VERSION=$(ls qt-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
  10. +BUILD=${BUILD:-1}
  11.  
  12.  # Automatically determine the architecture we're building on:
  13.  if [ -z "$ARCH" ]; then
  14. @@ -73,23 +73,23 @@
  15.  rm -rf $PKG
  16.  mkdir -p $TMP $PKG
  17.  cd $TMP
  18. -#rm -rf qt-x11-opensource-src-$VERSION
  19. -#tar xvf $CWD/qt-x11-opensource-src-$VERSION.tar.gz     # For qt releases
  20. -#cd qt-x11-opensource-src-$VERSION || exit 1
  21. -
  22. -rm -rf qt-$VERSION
  23. -if [ -r $CWD/qt-$VERSION.tar.gz ]; then
  24. -  tar xvf $CWD/qt-$VERSION.tar.gz || exit 1
  25. -elif [ -r $CWD/qt-$VERSION.tar.bz2 ]; then
  26. -  tar xvf $CWD/qt-$VERSION.tar.bz2 || exit 1
  27. -elif [ -r $CWD/qt-$VERSION.tar.xz ]; then
  28. -  tar xvf $CWD/qt-$VERSION.tar.xz || exit 1
  29. -elif [ -r $CWD/qt-$VERSION.tar.lzma ]; then
  30. -  tar xvf $CWD/qt-$VERSION.tar.lzma || exit 1
  31. -else
  32. -  exit 1
  33. -fi
  34. -cd qt-$VERSION || exit 1
  35. +rm -rf qt-everywhere-opensource-src-$VERSION
  36. +tar xvf $CWD/qt-everywhere-opensource-src-$VERSION.tar.xz     # For qt releases
  37. +cd qt-everywhere-opensource-src-$VERSION || exit 1
  38. +
  39. +#rm -rf qt-$VERSION
  40. +#if [ -r $CWD/qt-$VERSION.tar.gz ]; then
  41. +#  tar xvf $CWD/qt-$VERSION.tar.gz || exit 1
  42. +#elif [ -r $CWD/qt-$VERSION.tar.bz2 ]; then
  43. +#  tar xvf $CWD/qt-$VERSION.tar.bz2 || exit 1
  44. +#elif [ -r $CWD/qt-$VERSION.tar.xz ]; then
  45. +#  tar xvf $CWD/qt-$VERSION.tar.xz || exit 1
  46. +#elif [ -r $CWD/qt-$VERSION.tar.lzma ]; then
  47. +#  tar xvf $CWD/qt-$VERSION.tar.lzma || exit 1
  48. +#else
  49. +#  exit 1
  50. +#fi
  51. +#cd qt-$VERSION || exit 1
  52.  
  53.  chown -R root:root .
  54.  find . \
  55. @@ -100,12 +100,12 @@
  56.  
  57.  # apply_patches looks for a ".svn" directory, which doesn't exist in the used snapshot.
  58.  # removing the check from apply_patches to not try to apply already applied patches
  59. -sed -i "s| test -d .svn &&||" apply_patches
  60. +#sed -i "s| test -d .svn &&||" apply_patches
  61.  
  62.  # This is only needed/wanted for qt-copy (the r###### version) that we're
  63.  # building right now. It might require manual intervention, so don't walk
  64.  # away during the build
  65. -./apply_patches
  66. +#./apply_patches
  67.  
  68.  if [ $ARCH = "i486" ]; then
  69.    zcat $CWD/qt.x86.cflags.diff.gz | patch -p1 || exit 1
  70. @@ -115,11 +115,11 @@
  71.  zcat $CWD/qt.mysql.h.diff.gz | patch -p1 --verbose || exit 1
  72.  
  73.  # Upstream patch required for upcoming kdepim-4.6.x:
  74. -zcat $CWD/qt.QSortFilterProxyModel.reformatted.diff.gz | patch -p1 --verbose || exit 1
  75. +#zcat $CWD/qt.QSortFilterProxyModel.reformatted.diff.gz | patch -p1 --verbose || exit 1
  76.  
  77.  # Blacklist compromised certificates:
  78. -zcat $CWD/qt.blacklist.bad.certs.diff.gz | patch -p1 --verbose || exit 1
  79. -zcat $CWD/qt.blacklist.bad.certs.patch02.diff.gz | patch -p1 --verbose || exit 1
  80. +#zcat $CWD/qt.blacklist.bad.certs.diff.gz | patch -p1 --verbose || exit 1
  81. +#zcat $CWD/qt.blacklist.bad.certs.patch02.diff.gz | patch -p1 --verbose || exit 1
  82.  
  83.  export CFLAGS="$SLKCFLAGS"
  84.  export CXXFLAGS="$SLKCFLAGS"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement