mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
218a1a317e
commit
90f931dabe
4 changed files with 96 additions and 1 deletions
45
packaging/ubuntu/debian/12.04.control
Normal file
45
packaging/ubuntu/debian/12.04.control
Normal file
|
@ -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.
|
42
packaging/ubuntu/debian/12.04.rules
Executable file
42
packaging/ubuntu/debian/12.04.rules
Executable file
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue