From 2336ef3270028955412c820d59bb82bbe5f4c2b0 Mon Sep 17 00:00:00 2001 From: Reto Zingg Date: Sat, 3 Jul 2010 23:53:47 +0300 Subject: [PATCH] update debian files for QT version --- debian/changelog | 6 +++++ debian/control | 13 +++------ debian/copyright | 29 +++----------------- debian/rules | 77 +++++++++++++++--------------------------------------- 4 files changed, 34 insertions(+), 91 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6b0fd68..a728b4b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mancala (0.3.1) unstable; urgency=low + + * new qt version, based on KDE version + + -- Reto Zingg Sat, 3 Jul 2010 23:42:39 +0300 + mancala (0.2.3-1) unstable; urgency=low * do not use SDL_Caption and Icon diff --git a/debian/control b/debian/control index 9d8db66..f688a4d 100644 --- a/debian/control +++ b/debian/control @@ -3,15 +3,7 @@ Section: games Priority: extra Maintainer: Reto Zingg Build-Depends: debhelper (>= 5), - libhildon1-dev, - libosso-dev, - autotools-dev, - libsdl-image1.2-dev, - libsdl-ttf2.0-dev, - libsdl1.2-dev, - libsdl-mixer1.2-dev, - osso-games-startup-dev, - hildon-games-wrapper-dev + libqt4-dev Standards-Version: 3.7.2 Homepage: http://mancala.garage.maemo.org/ Xsbc-Bugtracker: https://garage.maemo.org/tracker/?atid=3836&group_id=1027&func=browse @@ -21,7 +13,8 @@ Architecture: any Section: user/games Depends: ${shlibs:Depends}, ${misc:Depends}, osso-games-startup, hildon-games-wrapper0 Description: Mancala, the ancient African game of skill! - Maemo version of mancala from http://cmancala.sourceforge.net/ + Maemo version of mancala from KDE project. + http://websvn.kde.org/trunk/kdereview/mancala/ Please file bugs here for this maemo version: https://garage.maemo.org/tracker/?atid=3836&group_id=1027&func=browse Homepage: http://mancala.garage.maemo.org/ diff --git a/debian/copyright b/debian/copyright index 891b4b1..450cc92 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,13 +1,12 @@ This package was debianized by Reto Zingg on Thu, 13 Aug 2009 17:03:19 +0300. -It was downloaded from http://cmancala.sourceforge.net/ -http://downloads.sourceforge.net/project/cmancala/mancala-gui/mancala-gui-0.1.0/mancala-gui-0.1.0.tar.gz +It was downloaded from http://websvn.kde.org/trunk/kdereview/mancala/ 17. June 2010 -Upstream Author: Kevin Riggle +Upstream Author: A.H.M.Mahfuzur Rahman 65mahfuz90@gmail.com -Copyright: 2002, 2003, 2004 Kevin Riggle -Copyright: 2009 Reto Zingg +Copyright: 2009 2010 A.H.M.Mahfuzur Rahman <65mahfuz90@gmail.com> +Copyright: 2009 Reto Zingg License: @@ -19,24 +18,4 @@ The Debian packaging is (C) 2009, Reto Zingg and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. -data/pick.wav is taken from the game knetwalk and is called there "connect.wav" -http://websvn.kde.org/trunk/KDE/kdegames/knetwalk/src/sounds/connect.wav?view=log -KNetWalk, a game for system administrators. - -(C) 2004-2005 Andi Peredri, ported to KDE by Thomas Nagy -(C) 2007-2008 Fela Winkelmolen - -License: GNU General Public License Version 2 - - -data/luxisr.ttf: -Luxi fonts copyright (c) 2001 by Bigelow & Holmes Inc. Luxi font -instruction code copyright (c) 2001 by URW++ GmbH. All Rights -Reserved. Luxi is a registered trademark of Bigelow & Holmes Inc. - -see COPYRIGHT.BH file. - -parts from Crazyparking: -http://repository.maemo.org/extras-testing/pool/fremantle/free/source/c/crazyparking/crazyparking_0.2.7-2.tar.gz -License: GNU General Public License Version 2 diff --git a/debian/rules b/debian/rules index 416695c..26c56a2 100755 --- a/debian/rules +++ b/debian/rules @@ -1,67 +1,43 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=0 +APPNAME := mancala -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(CURDIR)/debian/$(APPNAME)/opt/$(APPNAME)/lib +builddir: + mkdir -p builddir -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -config.status: - dh_testdir - # Add here commands to configure the package. +builddir/Makefile: builddir + cd builddir && qmake-qt4 PREFIX=/opt/$(APPNAME) ../$(APPNAME).pro build: build-stamp -build-stamp: config.status +build-stamp: builddir/Makefile dh_testdir - # Add here commands to compile the package. - $(MAKE) + cd builddir && $(MAKE) touch $@ clean: dh_testdir dh_testroot - rm -f build-stamp - + rm -f build-stamp # Add here commands to clean up after the build process. - -$(MAKE) clean -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - - + rm -rf builddir dh_clean install: build dh_testdir dh_testroot - dh_clean -k + dh_clean -k dh_installdirs - # Add here commands to install the package into debian/mancala - $(MAKE) DESTDIR=$(CURDIR)/debian/mancala install + # Add here commands to install the package into debian/your_appname + cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install + # Build architecture-independent files here. @@ -72,32 +48,21 @@ binary-indep: build install binary-arch: build install dh_testdir dh_testroot -# dh_installchangelogs - dh_installdocs -XFAQ -XNEWS -XBUGS -XREADME.translators -XTODO -XREADME + dh_install --sourcedir=debian/$(APPNAME) +# dh_installdocs # dh_installexamples - dh_install --sourcedir=debian/tmp -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python -# dh_installinit -# dh_installcron -# dh_installinfo -# dh_installman --sourcedir=debian/tmp +# dh_installman dh_link - dh_strip +# dh_strip --dbg-package=-dbg dh_compress dh_fixperms -# dh_perl -# dh_makeshlibs dh_installdeb + echo $(LD_LIBRARY_PATH) dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean binary-indep binary-arch binary install configure + -- 1.7.9.5