Skip to content

Commit

Permalink
Add Installed-Size to debian package control file.
Browse files Browse the repository at this point in the history
This should help with warnings from Ubuntu 14.04 Software Center.
See jgm#1900.
  • Loading branch information
jgm committed Jan 26, 2015
1 parent 33d1c8c commit 4e03796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions deb/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Description: general markup converter
Expand Down
5 changes: 4 additions & 1 deletion make_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4e03796

Please sign in to comment.