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/make-package.sh | |
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/make-package.sh')
-rw-r--r-- | packaging/ubuntu/make-package.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh new file mode 100644 index 000000000..994b00b4b --- /dev/null +++ b/packaging/ubuntu/make-package.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# start from the directory above the combined subsurface & subsurface/libdivecomputer directory +VERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v//') +echo "building Subsurface" $VERSION +if [[ -d subsurface-$VERSION ]]; then + rm -rf subsurface-$VERSION.bak.prev + mv subsurface-$VERSION.bak subsurface-$VERSION.bak.prev + mv subsurface-$VERSION subsurface-$VERSION.bak +fi +mkdir subsurface-$VERSION +(cd subsurface ; tar cf - . .git ) | (cd subsurface-$VERSION ; tar xf - ) +cd subsurface-$VERSION +dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes +rm debian/*.ex debian/*.EX debian/README.* +cp ../subsurface/packaging/ubuntu/control debian/control +cp ../subsurface/packaging/ubuntu/copyright debian/copyright +cp ../subsurface/packaging/ubuntu/rules debian/rules +cp ../subsurface/packaging/ubuntu/source.lintian-overrides debian/source.lintian-overrides +# do something clever with changelog +mv debian/changelog debian/autocl +head -1 debian/autocl | sed -e 's/unstable/trusty/' > debian/changelog +cat ../subsurface/packaging/ubuntu/changelog.txt >> debian/changelog +tail -1 debian/autocl >> debian/changelog +rm -f debian/autocl + +debuild -S + + + + +exit +cd subsurface-$VERSION/libdivecomputer +autoreconf --install +./configure +make + |