]> granicus.if.org Git - libjpeg-turbo/commitdiff
Include "Installed-Size" field in the deb-control file to prevent Ubuntu from complaining
authorDRC <dcommander@users.sourceforge.net>
Thu, 17 Jul 2014 08:25:32 +0000 (08:25 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 17 Jul 2014 08:25:32 +0000 (08:25 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1330 632fc199-4ca6-4c93-a231-07263d6284db

release/deb-control.tmpl
release/makedpkg.in

index 5ae4ce9f6cbb0c9027444ab6e1ccf2ffd669bd13..510b1d6680c9fea77b73f0f3b80333518b6bc26c 100644 (file)
@@ -6,6 +6,7 @@ Architecture: {__ARCH}
 Essential: no
 Maintainer: The libjpeg-turbo Project <information@libjpeg-turbo.org>
 Homepage: http://www.libjpeg-turbo.org
+Installed-Size: {__SIZE}
 Description: A SIMD-accelerated JPEG codec that provides both the libjpeg and TurboJPEG APIs
  libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2,
  NEON) to accelerate baseline JPEG compression and decompression on x86,
index fa6bc190e0d20a30e8d7672cc36218f3ed717286..448e4cddc7696d9a7a54387f403432c1a9e70dc0 100644 (file)
@@ -29,9 +29,6 @@ makedeb()
        rm -f $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb
        TMPDIR=`mktemp -d /tmp/$PACKAGE_NAME-build.XXXXXX`
        mkdir $TMPDIR/DEBIAN
-       (cat $SRCDIR/release/deb-control.tmpl | sed s/{__PKGNAME}/$PACKAGE_NAME/g \
-               | sed s/{__VERSION}/$VERSION/g | sed s/{__BUILD}/$BUILD/g \
-               | sed s/{__ARCH}/$DEBARCH/g > $TMPDIR/DEBIAN/control)
 
        if [ $SUPPLEMENT = 1 ]; then
                make install DESTDIR=$TMPDIR bindir=/dummy/bin datadir=/dummy/data \
@@ -47,6 +44,13 @@ makedeb()
                fi
        fi
 
+       SIZE=`du -s $TMPDIR | cut -f1`
+       (cat $SRCDIR/release/deb-control.tmpl | sed s/{__PKGNAME}/$PACKAGE_NAME/g \
+               | sed s/{__VERSION}/$VERSION/g | sed s/{__BUILD}/$BUILD/g \
+               | sed s/{__ARCH}/$DEBARCH/g | sed s/{__SIZE}/$SIZE/g \
+               > $TMPDIR/DEBIAN/control)
+
+
        /sbin/ldconfig -n $TMPDIR$LIBDIR
 
        sudo chown -Rh root:root $TMPDIR/*