[arch-commits] CVS update of extra/lib/qt (PKGBUILD)

Pierre Schmitz pierre at archlinux.org
Wed Dec 5 03:12:01 EST 2007


    Date: Wednesday, December 5, 2007 @ 03:12:01
  Author: pierre
    Path: /home/cvs-extra/extra/lib/qt

Modified: PKGBUILD (1.34 -> 1.35)

removed demos and examples (reduces package size by 8.7MB); cvs commit only


----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)


Index: extra/lib/qt/PKGBUILD
diff -u extra/lib/qt/PKGBUILD:1.34 extra/lib/qt/PKGBUILD:1.35
--- extra/lib/qt/PKGBUILD:1.34	Wed Dec  5 02:17:30 2007
+++ extra/lib/qt/PKGBUILD	Wed Dec  5 03:12:01 2007
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD,v 1.34 2007/12/05 07:17:30 tpowa Exp $
+# $Id: PKGBUILD,v 1.35 2007/12/05 08:12:01 pierre Exp $
 # Contributer: Vinay S Shastry (vinayshastry at gmail.com)
 pkgname=qt
 pkgver=4.3.2
@@ -16,8 +16,13 @@
 conflicts=('qt4')
 _pkgfqn=qt-x11-opensource-src-$pkgver
 source=(ftp://ftp.trolltech.com/qt/source/$_pkgfqn.tar.gz \
-	ftp://ftp.archlinux.org/other/qt/qt-copy-kde-patches.tar.bz2 \
+        ftp://ftp.archlinux.org/other/qt/qt-copy-kde-patches.tar.bz2 \
         qt4-assistant.desktop  qt4-designer.desktop qt4-linguist.desktop )
+md5sums=('a60490b36099bdd10c4d2f55430075b3'
+         'c0dac56a15aa19aa73b0caf7ce316c9c'
+         '67adab60dd87270e733d25552a826950'
+         '40a36635b14c32bd2923e408c2e877bf'
+         'cd6e1c951e079e2eace67bce5e63966c')
 
 build() {
   unset QMAKESPEC
@@ -41,6 +46,8 @@
   # start compiling qt
   sed -i 's|-cp -P -f|-cp -L -f|' qmake/Makefile.unix
   sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
+  # do not compile demos and examples
+  sed -i 's|CFG_NOBUILD_PARTS=""|CFG_NOBUILD_PARTS="demos examples"|' configure
 
   ./configure -confirm-license \
     -prefix /usr \
@@ -75,12 +82,7 @@
   # lots of cleanup and path fixes - thanks to crazy (frugalware)
   find $startdir/pkg/usr/lib -type f -name '*prl' -print -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
   sed -i -e "s|-L$startdir/src/${_pkgfqn}/lib||g" $startdir/pkg/usr/lib/pkgconfig/*.pc
-  sed -i -e "s|-L$startdir/src/${_pkgfqn}/lib||g" $startdir/pkg/usr/lib/*.prl $startdir/pkg/usr/share/doc/qt/demos/shared/libdemo_shared.prl
+  #sed -i -e "s|-L$startdir/src/${_pkgfqn}/lib||g" $startdir/pkg/usr/lib/*.prl $startdir/pkg/usr/share/doc/qt/demos/shared/libdemo_shared.prl
   sed -i -e "s|$startdir/src/${_pkgfqn}/bin/moc|/usr/bin/moc|g" $startdir/pkg/usr/lib/pkgconfig/*.pc
   sed -i -e "s|$startdir/src/${_pkgfqn}/bin/uic|/usr/bin/uic|g" $startdir/pkg/usr/lib/pkgconfig/*.pc
-}
-md5sums=('a60490b36099bdd10c4d2f55430075b3'
-         'c0dac56a15aa19aa73b0caf7ce316c9c'
-         '67adab60dd87270e733d25552a826950'
-         '40a36635b14c32bd2923e408c2e877bf'
-         'cd6e1c951e079e2eace67bce5e63966c')
+}
\ No newline at end of file




More information about the arch-commits mailing list