summaryrefslogtreecommitdiff
path: root/make_deb.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-26 14:30:27 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-26 14:34:32 -0800
commit4e03796f145d8da84d59c8c272b7640fe1f7eb76 (patch)
treec4944ee3a2dc6e57d9a90384ef5a4c5279086321 /make_deb.sh
parent33d1c8cc0154266a2a54e9050408422c7884acdf (diff)
Add Installed-Size to debian package control file.
This should help with warnings from Ubuntu 14.04 Software Center. See #1900.
Diffstat (limited to 'make_deb.sh')
-rwxr-xr-xmake_deb.sh5
1 files changed, 4 insertions, 1 deletions
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