.lpbuild: fixed unclean source tree in deb, updated standard version, improved dependancy generation

git-svn-id: svn://ultimatepp.org/upp/trunk@2279 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
dolik 2010-03-29 11:13:08 +00:00
parent e1e4220529
commit 1bbf5352f7
3 changed files with 10 additions and 12 deletions

View file

@ -2,7 +2,7 @@ Source: upp
Section: devel
Priority: optional
Maintainer: Jan Dolinar <dolik.rce@seznam.cz>
Standards-Version: 3.8.3.0
Standards-Version: 3.8.4
Build-Depends: rsync, libx11-dev (>= 1.0.0), libxft-dev (>= 2.1.8), libpng12-dev (>= 1.2.8), libgtk2.0-dev (>= 2.8.17), libnotify-dev
Package: upp

View file

@ -39,9 +39,6 @@ then
exit 1
fi
# strip symbols from executable
strip --strip-all --remove-section=.comment --remove-section=.note $tmp/usr/bin/theide
# copy source files to tmp folder
# (copying is done by rsync, because it allows to exclude svn and also
# to change permissions on the files)
@ -209,6 +206,13 @@ cp $SRC_PATH/debian/copyright $tmp/usr/share/doc/$PKG
cat $SRC_PATH/debian/theide.1 |gzip -9 > $tmp/usr/share/man/man1/theide.1.gz
cat $SRC_PATH/changelog |gzip -9 > $tmp/usr/share/doc/$PKG/changelog.gz
# generate dependencies
cd $SRC_PATH
dpkg-shlibdeps $tmp/usr/bin/theide
# strip symbols from executable
strip --strip-all --remove-section=.comment --remove-section=.note $tmp/usr/bin/theide
#get the installed size (approx...)
size=`du -s $tmp/usr |sed 's/[^0-9].*$//'`
@ -217,11 +221,8 @@ cd $tmp
find ./ -type f -exec md5sum {} \; | sed s/.[/]// >> $outtmp/md5sums
mv $outtmp/md5sums $tmp/DEBIAN/md5sums
# generate dependencies
cd $SRC_PATH
dpkg-shlibdeps $tmp/usr/bin/theide
# create control file
cd $SRC_PATH
dpkg-gencontrol -P$tmp
# copy maintainer scripts
@ -236,9 +237,6 @@ chmod 0755 $tmp/DEBIAN/{postinst,prerm} $tmp/usr/bin/theide
# creates final .deb package
dpkg-deb -b $tmp $DEST_PATH
#~ # create debian/files
#~ echo "upp_"$release"_"$arch".deb devel optional" > $SRC_PATH/debian/files
# delete tmp directory
rm -r $outtmp

View file

@ -10,7 +10,7 @@ build:
binary-indep:
binary-arch: clean build
binary-arch: build clean
bash -x $(CURDIR)/debian/dopack $(CURDIR) $(CURDIR)/..
binary: binary-indep binary-arch