First attempt to make a Debian package
This commit is contained in:
		
							
								
								
									
										64
									
								
								debian/Makefile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								debian/Makefile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,64 @@ | ||||
| CXXFLAGS+=`wx-config --cxxflags` -Wall -Isrc -ggdb | ||||
| CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include | ||||
| CXXFLAGS+=-I./lib/freechart/include | ||||
|  | ||||
| LDFLAGS+=`wx-config --libs` | ||||
| ifdef WIN32 | ||||
| LDFLAGS+=-L./lib/wxsqlite3-1.9.9/lib/ -lwxcode_msw_wxsqlite3-2.8 | ||||
| LDFLAGS+=-L./lib/freechart/lib -lwxcode_msw_freechart-2.8 | ||||
| else | ||||
| LDFLAGS+=-L./lib/wxsqlite3-1.9.9/lib/ -lwxcode_gtk2u_wxsqlite3-2.8 | ||||
| LDFLAGS+=-L./lib/freechart/lib -lwxcode_gtk2u_freechart-2.8 | ||||
| endif | ||||
|  | ||||
| CXX=$(PREFIX)g++ | ||||
|  | ||||
| SOURCES=$(wildcard src/model/*.cpp) | ||||
| SOURCES+=$(wildcard src/view/*.cpp) | ||||
| SOURCES+=$(wildcard src/view/grid/*.cpp) | ||||
| SOURCES+=$(wildcard src/controller/*.cpp) | ||||
| SOURCES+=src/main.cpp src/sha1.cpp src/ParseExp.cpp | ||||
| HEADERS=$(wildcard src/model/*.h)  | ||||
| HEADERS+=$(wildcard src/view/*.h) | ||||
| HEADERS+=$(wildcard src/view/grid/*.h) | ||||
| HEADERS+=$(wildcard src/controller/*.h) | ||||
| HEADERS+=src/main.h src/sha1.h | ||||
| OBJS=$(SOURCES:.cpp=.o) | ||||
|  | ||||
| all: check kc | ||||
|  | ||||
| clean: | ||||
| 	rm -f *~ src/*~ src/*.o src/model/*.o src/model/*~ src/view/*.o src/view/grid/*.o src/view/grid/*~ src/view/*~ src/controller/*.o src/controller/*~ kc | ||||
|  | ||||
| # %.o : src/model/%.cpp src/view/%.cpp src/view/grid/%.cpp src/controller/%.cpp src/%.cpp | ||||
| # 	$(CXX) $(CXXFLAGS) $< -c | ||||
|  | ||||
| check: | ||||
| #	if ! test -d lib ; then echo lib directory not found, please see INSTALL ; return 1 ; fi | ||||
|  | ||||
| #kc: $(OBJS) | ||||
| #	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | ||||
|  | ||||
| kc: | ||||
| 	cp ../kc . | ||||
|  | ||||
| generate_locales: | ||||
| 	./tools/generate_locales.sh | ||||
|  | ||||
| ifdef WIN32 | ||||
| package: | ||||
| 	./tools/package_win32.sh | ||||
| else | ||||
| package: | ||||
| 	./tools/package.sh | ||||
| endif | ||||
|  | ||||
| install: | ||||
| 	mkdir -p $(DESTDIR)/usr/lib/kisscount/ | ||||
| 	mkdir -p $(DESTDIR)/usr/bin | ||||
| 	cp kc $(DESTDIR)/usr/lib/kisscount/ | ||||
| 	cp -r ressources $(DESTDIR)/usr/lib/kisscount/ | ||||
| 	cp -r lib/*.so* $(DESTDIR)/usr/lib/kisscount/ | ||||
| 	cp tools/launch_kc.sh $(DESTDIR)/usr/lib/kisscount/ | ||||
| 	cp init.sql $(DESTDIR)/usr/lib/kisscount/ | ||||
| 	ln -s $(DESTDIR)/usr/lib/kisscount/launch_kc.sh $(DESTDIR)/usr/bin/kc | ||||
							
								
								
									
										5
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| kisscount (0.2-1) unstable; urgency=low | ||||
|  | ||||
|   * Initial release | ||||
|  | ||||
|  -- Grégory Soutadé <soutade@gmail.com>  Sat, 26 Feb 2011 13:13:52 +0100 | ||||
							
								
								
									
										1
									
								
								debian/compat
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/compat
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| 7 | ||||
							
								
								
									
										17
									
								
								debian/control
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								debian/control
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| Source: kisscount | ||||
| Section: misc | ||||
| Priority: extra | ||||
| Maintainer: Grégory Soutadé <soutade@gmail.com> | ||||
| Build-Depends: debhelper (>= 7.0.50~), libsqlite3-dev, libwxgtk2.8-dev (>= 2.8.10) | ||||
| Standards-Version: 3.9.1 | ||||
| Homepage: http://indefero.soutade.fr/p/kisscount/ | ||||
| #Vcs-Git: git://git.debian.org/collab-maint/kisscount.git | ||||
| #Vcs-Browser: http://git.debian.org/?p=collab-maint/kisscount.git;a=summary | ||||
|  | ||||
| Package: kisscount | ||||
| Architecture: amd64 | ||||
| Depends: ${misc:Depends} | ||||
| Description: Personal accounting software | ||||
|  KissCount is a personal accounting software. | ||||
|  It focuses on simplicity and everyday  | ||||
|  users requirements. | ||||
							
								
								
									
										29
									
								
								debian/copyright
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								debian/copyright
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| Format: http://dep.debian.net/deps/dep5 | ||||
| Upstream-Name: kisscount | ||||
| Source: http://indefero.soutade.fr/p/kisscount/ | ||||
|  | ||||
| Files: * | ||||
| Copyright: 2010-2011 Grégory Soutadé | ||||
|  | ||||
| License: GPL-3.0+ | ||||
|  | ||||
| Files: debian/* | ||||
| Copyright: 2011 Grégory Soutadé <soutade@gmail.com> | ||||
| License: GPL-3.0+ | ||||
|  | ||||
| License: GPL-3.0+ | ||||
|  This program is free software: you can redistribute it and/or modify | ||||
|  it under the terms of the GNU General Public License as published by | ||||
|  the Free Software Foundation, either version 3 of the License, or | ||||
|  (at your option) any later version. | ||||
|  . | ||||
|  This package is distributed in the hope that it will be useful, | ||||
|  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|  GNU General Public License for more details. | ||||
|  . | ||||
|  You should have received a copy of the GNU General Public License | ||||
|  along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
|  . | ||||
|  On Debian systems, the complete text of the GNU General | ||||
|  Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". | ||||
							
								
								
									
										1
									
								
								debian/dirs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/dirs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| /usr/lib/kisscount | ||||
							
								
								
									
										2
									
								
								debian/docs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								debian/docs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| README | ||||
| README.fr | ||||
							
								
								
									
										1
									
								
								debian/files
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/files
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| kisscount_0.2-1_amd64.deb misc extra | ||||
							
								
								
									
										1
									
								
								debian/kisscount-install
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/kisscount-install
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| usr/bin/kc | ||||
							
								
								
									
										2
									
								
								debian/menu
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								debian/menu
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| ?package(kisscount):needs="X11" section="Applications/Office"\ | ||||
|   title="kisscount" command="/usr/bin/kc" | ||||
							
								
								
									
										28
									
								
								debian/rules
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										28
									
								
								debian/rules
									
									
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| #!/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=1 | ||||
|  | ||||
| %: | ||||
| 	dh $@  | ||||
|  | ||||
| # clean: | ||||
|  | ||||
| # build: | ||||
| # 	$(MAKE) | ||||
|  | ||||
| # binary: | ||||
|  | ||||
| # binary-arch: | ||||
|  | ||||
| # binary-indep: | ||||
|  | ||||
| # install: | ||||
| # 	$(MAKE) install DESTDIR=$(CURDIR)/debian/kisscount/ | ||||
| override_dh_shlibdeps: | ||||
							
								
								
									
										1
									
								
								debian/source/format
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/source/format
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| 3.0 (quilt) | ||||
		Reference in New Issue
	
	Block a user