aboutsummaryrefslogtreecommitdiff
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
parent33d1c8cc0154266a2a54e9050408422c7884acdf (diff)
downloadpandoc-4e03796f145d8da84d59c8c272b7640fe1f7eb76.tar.gz
Add Installed-Size to debian package control file.
This should help with warnings from Ubuntu 14.04 Software Center. See #1900.
-rw-r--r--deb/control.in1
-rwxr-xr-xmake_deb.sh5
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