Add Installed-Size to debian package control file.
This should help with warnings from Ubuntu 14.04 Software Center. See #1900.
This commit is contained in:
parent
33d1c8cc01
commit
4e03796f14
2 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@ Version: VERSION
|
|||
Section: text
|
||||
Priority: optional
|
||||
Architecture: ARCHITECTURE
|
||||
Installed-Size: INSTALLED_SIZE
|
||||
Depends: libc6 (>= 2.11), libgmp10, zlib1g (>= 1:1.1.4)
|
||||
Maintainer: John MacFarlane <jgm@berkeley.edu>
|
||||
Description: general markup converter
|
||||
|
|
|
@ -56,9 +56,12 @@ echo "pandoc-citeproc" >> $COPYRIGHT
|
|||
cat $PANDOC_CITEPROC_PATH/LICENSE >> $COPYRIGHT
|
||||
rm -rf make_binary_package.tmp.$$
|
||||
|
||||
INSTALLED_SIZE=$(du -B 1024 -s $DEST | awk '{print $1}')
|
||||
mkdir $DIST/DEBIAN
|
||||
perl -pe "s/VERSION/$DEBVER/" deb/control.in | \
|
||||
perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" > $DIST/DEBIAN/control
|
||||
perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
|
||||
perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
|
||||
> $DIST/DEBIAN/control
|
||||
|
||||
fakeroot dpkg-deb --build $DIST
|
||||
rm -rf $DIST
|
||||
|
|
Loading…
Add table
Reference in a new issue