summaryrefslogtreecommitdiffstats
path: root/packaging/ubuntu
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-15 12:47:24 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-15 13:02:52 -0800
commit90f931dabe60debd0ced83b48e8bae3f10805797 (patch)
treee71f57262e756f261aa75d61fac7d1f7ace4f54a /packaging/ubuntu
parent218a1a317e98957cdd01541421bd2fdfe40f20e6 (diff)
downloadsubsurface-90f931dabe60debd0ced83b48e8bae3f10805797.tar.gz
Attempt to build for Ubuntu 12.04 as well
And fix a silly typo in the Debian/Ubuntu control file Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ubuntu')
-rw-r--r--packaging/ubuntu/debian/12.04.control45
-rwxr-xr-xpackaging/ubuntu/debian/12.04.rules42
-rw-r--r--packaging/ubuntu/debian/control2
-rw-r--r--packaging/ubuntu/make-package.sh8
4 files changed, 96 insertions, 1 deletions
diff --git a/packaging/ubuntu/debian/12.04.control b/packaging/ubuntu/debian/12.04.control
new file mode 100644
index 000000000..147d3b979
--- /dev/null
+++ b/packaging/ubuntu/debian/12.04.control
@@ -0,0 +1,45 @@
+Source: subsurface
+Section: utils
+Priority: optional
+Maintainer: Dirk Hohndel <dirk@hohndel.org>
+Build-Depends: asciidoc,
+ debhelper (>= 9),
+ libgconf2-dev,
+ libtool,
+ libxml2-dev,
+ libxslt-dev,
+ libsoup2.4-dev,
+ pkg-config,
+ txt2html,
+ libzip-dev,
+ libsqlite3-dev,
+ autoconf,
+ automake,
+ cmake,
+ dpkg-dev (>= 1.16.1.1),
+ libusb-1.0-0-dev,
+ dh-autoreconf,
+ libz-dev,
+ libssl-dev,
+ git,
+ qt4-qmake,
+ libqt4-svg,
+ libqt4-webkit,
+ libqtwebkit-dev,
+ libqt4-dev,
+ qtscript-tools,
+ qt4-linguist-tools
+Standards-Version: 3.9.5
+Homepage: http://subsurface-divelog.org
+#Vcs-Git: git://git.debian.org/collab-maint/subsurface-4.2.90.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/subsurface-4.2.90.git;a=summary
+
+Package: subsurface
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Dive log program
+ Subsurface is an open source divelog program that runs on Windows, Mac and Linux.
+ Subsurface is able to track single- and multi-tank dives using air, Nitrox or
+ TriMix. It also allows logging of weights and exposure protection used, dive
+ masters and dive buddies and enables the user to rate dives and provide
+ additional dive notes.
diff --git a/packaging/ubuntu/debian/12.04.rules b/packaging/ubuntu/debian/12.04.rules
new file mode 100755
index 000000000..ab3087484
--- /dev/null
+++ b/packaging/ubuntu/debian/12.04.rules
@@ -0,0 +1,42 @@
+#!/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 -rf marble-build
+ rm -f ssrf-version.h
+ rm -f subsurface
+ rm -f Makefile
+
+override_dh_auto_configure:
+ (cd libdivecomputer ; autoreconf --install ; ./configure --disable-shared ; make -j8 )
+ (mkdir libgit2/build ; cd libgit2/build ; \
+ cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_CLAR=OFF -DBUILD_EXAMPLES=OFF .. ; \
+ sed -i 's/.so$/.a/' CMakeCache.txt ; make -j8 )
+ (mkdir marble-build ; cd marble-build ; \
+ cmake -DQTONLY=ON -DQT5BUILD=OFF \
+ -DBUILD_MARBLE_APPS=OFF -DBUILD_MARBLE_EXAMPLES=OFF \
+ -DBUILD_MARBLE_TESTS=OFF -DBUILD_MARBLE_TOOLS=OFF \
+ -DBUILD_TESTING=OFF -DWITH_DESIGNER_PLUGIN=OFF \
+ -DBUILD_WITH_DBUS=OFF ../marble-source ; \
+ make -j8 ; \
+ mkdir include ; cd include ; for i in `find ../../marble-source -name \*.h` ; do ln -s $$i . ; done ; \
+ ln -s . marble )
+ qmake LIBDCDEVEL=./libdivecomputer LIBGIT2DEVEL=./libgit2 LIBGIT2STATIC=1 LIBMARBLEDEVEL=./marble-build SPECIAL_MARBLE_PREFIX=1 subsurface.pro
+
+override_dh_installchangelogs:
+ dh_installchangelogs
+ dh_installchangelogs ReleaseNotes/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
diff --git a/packaging/ubuntu/debian/control b/packaging/ubuntu/debian/control
index 679679ba2..27f28b32d 100644
--- a/packaging/ubuntu/debian/control
+++ b/packaging/ubuntu/debian/control
@@ -29,7 +29,7 @@ Build-Depends: asciidoc,
qtscript5-dev,
qt5-default
Standards-Version: 3.9.5
-Homepage: http://subsurface-divelog.hohndel.org
+Homepage: http://subsurface-divelog.org
#Vcs-Git: git://git.debian.org/collab-maint/subsurface-4.2.90.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/subsurface-4.2.90.git;a=summary
diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh
index 2b78fba16..fa3a4f438 100644
--- a/packaging/ubuntu/make-package.sh
+++ b/packaging/ubuntu/make-package.sh
@@ -68,6 +68,14 @@ rel=utopic
sed -i "s/${prev}/${rel}/g" debian/changelog
debuild -S
+# and now for precise
+prev=utopic
+rel=precise
+sed -i "s/${prev}/${rel}/g" debian/changelog
+cp debian/12.04.control debian/control
+cp debian/12.04.rules debian/rules
+debuild -S
+
cd ..
if [[ "$1x" = "postx" ]] ; then