diff options
-rw-r--r-- | deb/control.in | 1 | ||||
-rwxr-xr-x | make_deb.sh | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/deb/control.in b/deb/control.in index 355c5ace4..0aabf67a2 100644 --- a/deb/control.in +++ b/deb/control.in @@ -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 diff --git a/make_deb.sh b/make_deb.sh index f94959f1e..1cae959a9 100755 --- a/make_deb.sh +++ b/make_deb.sh @@ -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 |