aboutsummaryrefslogtreecommitdiffstats
path: root/resources/install/debian/rules
blob: 3ead0a1563282337bef7097364d2cb2c54dd10dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Build
export ANT=ant

export BASEDIR=../..

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.

	touch configure-stamp


build: build-stamp

build-stamp: configure-stamp 
	dh_testdir

	# Add here commands to compile the package.
	#-$(ANT) -file $(BASEDIR)/build.xml rebuild

	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	# Add here commands to clean up after the build process.
	#-$(ANT) -file $(BASEDIR)/build.xml clean

	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

	# Add here commands to install the package into debian/sip-communicator.
	cp debian/sc-logo-32x32.xpm debian/sip-communicator/usr/share/pixmaps/sip-communicator.xpm
	cp debian/sip-communicator.desktop debian/sip-communicator/usr/share/applications/
	cp $(BASEDIR)/lib/*.jar debian/sip-communicator/usr/share/sip-communicator/lib
	cp $(BASEDIR)/lib/logging.properties debian/sip-communicator/usr/share/sip-communicator/lib
	cp $(BASEDIR)/lib/felix.client.run.properties debian/sip-communicator/usr/share/sip-communicator/lib
	cp -r $(BASEDIR)/lib/native/linux debian/sip-communicator/usr/share/sip-communicator/lib/native
	rm -rf debian/sip-communicator/usr/share/sip-communicator/lib/native/CVS
	cp $(BASEDIR)/lib/bundle/org.apache.felix.servicebinder-0.8.0-SNAPSHOT.jar debian/sip-communicator/usr/share/sip-communicator/lib/bundle/org.apache.felix.servicebinder-0.8.0-SNAPSHOT.jar
	cp -r $(BASEDIR)/sc-bundles debian/sip-communicator/usr/share/sip-communicator
	install -m 755 debian/sip-communicator.sh debian/sip-communicator/usr/bin/sip-communicator

	# Remove all slicks
	rm debian/sip-communicator/usr/share/sip-communicator/sc-bundles/*-slick.jar

	# Don't include libs already in debian
	rm debian/sip-communicator/usr/share/sip-communicator/lib/bcprov-jdk14-130.jar
	rm debian/sip-communicator/usr/share/sip-communicator/lib/log4j-1.2.8.jar

	# Remove other unneeded libs
	rm debian/sip-communicator/usr/share/sip-communicator/lib/junit.jar

	# Make oscar deploy its bundles in ~/.felix/sip-communicator.bin
	sed -i -e "s/felix.cache.profiledir=sip-communicator.bin/felix.cache.profile=sip-communicator.bin/" debian/sip-communicator/usr/share/sip-communicator/lib/felix.client.run.properties


# Build i386 files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_installexamples
#	dh_install
	dh_installmenu
#	dh_installdebconf	
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_python
#	dh_installinit
#	dh_installcron
#	dh_installinfo
	dh_installman debian/sip-communicator.1
	dh_link
	dh_compress
	dh_fixperms
	dh_strip
#	dh_perl
#	dh_makeshlibs
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch
.PHONY: build clean binary-arch binary install configure