diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-12-01 16:00:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-02 08:51:32 -0800 |
commit | 74447d63892e37b8c69b5456de3836b745552ed0 (patch) | |
tree | 4f8553e199a7ff13a89c4c1cb4d9f5b34ded4e50 /packaging/ubuntu/rules | |
parent | bb12dea03c81ca3a47491b4c85a9b0803c9ba278 (diff) | |
download | subsurface-74447d63892e37b8c69b5456de3836b745552ed0.tar.gz |
Add Ubuntu packaging instructions
These files knowingly (one might say, intentionally) violate the spirit
and letter of the Debian / Ubuntu packaging rules. They are intended to be
able to create our own packages that include their own libdivecomputer,
libgit2 and (later) libmarble. Especially for daily builds this is WAY
easier than fighting with whatever may be the current version of these
packages in Ubuntu (especially since this allows us to use our private
libdivecomputer branch).
This assumes that the user runs the make-package.sh script from a
directory below which we have
subsurface/ <- Subsurface checked out git tree
subsurface/libdivecomputer <- desired libdivecomputer sources
subsurface/libgit2 <- desired libgit2 source
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ubuntu/rules')
-rwxr-xr-x | packaging/ubuntu/rules | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packaging/ubuntu/rules b/packaging/ubuntu/rules new file mode 100755 index 000000000..bc5831655 --- /dev/null +++ b/packaging/ubuntu/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + + +%: + dh $@ + +override_dh_auto_clean: + (cd libdivecomputer ; make clean || true) + make clean || true + rm -rf libgit2/build + rm -f ssrf-version.h + rm -f subsurface + rm -f Makefile + +override_dh_auto_configure: + (cd libdivecomputer ; autoreconf --install ; ./configure ; make) + (mkdir libgit2/build ; cd libgit2/build ; cmake .. ; make ) + qmake LIBDCDEVEL=./libdivecomputer LIBGIT2DEVEL=./libgit2 subsurface.pro + +override_dh_installchangelogs: + dh_installchangelogs + dh_installchangelogs ReleaseNotes.txt + txt2html Documentation/user-manual.txt > Documentation/user-manual.html + mkdir -p debian/subsurface/usr/share/doc/subsurface + cp Documentation/user-manual.txt debian/subsurface/usr/share/doc/subsurface/ + cp Documentation/user-manual.html debian/subsurface/usr/share/doc/subsurface/html + |