- Try to make more fine tuned use of rpath, crossing fingers not to break builds for foreign hosts

- Calc debian package final size dynamically

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1183 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-16 00:42:10 +00:00
parent 28bd934c50
commit 70c3609a8f
7 changed files with 22 additions and 7 deletions

View file

@ -25,7 +25,7 @@ cd "${pkgname}-${version}"
mkdir =build
cd =build
CXXFLAGS="-O3 -pipe" ../configure --disable-tests --disable-debug --prefix=/usr
CXXFLAGS="-O3 -pipe" ../configure --disable-tests --disable-debug --disable-static --prefix=/usr
make
make pdf
@ -43,8 +43,11 @@ for i in AUTHORS NEWS README COPYING ChangeLog; do
done
cd ${curdir}
pkg_size="$( du -sk ${curdir} )"
mkdir -p "${destdir}/DEBIAN"
cp "$1" "${destdir}/DEBIAN/control"
sed "s|@SIZE@|${pkg_size}|g" "$1" > "${destdir}/DEBIAN/control"
dpkg -b "${destdir}" .

View file

@ -5,7 +5,7 @@ Priority: optional
Architecture: i386
Pre-Depends: libstdc++6
Depends: libgtkmm-2.4-1c2a, libglademm-2.4-1c2a, libxml2 (>= 2.6.10), libcairo, python (>= 2.3)
Installed-Size: 3049.85
Installed-Size: @SIZE@
Maintainer: Marco Trevisan <evenjin@gmail.com>
Provides: sgpemv2
Description: A graphical process management simulator with educational purposes.