File: rules

package info (click to toggle)
keepass2 2.41+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 13,892 kB
  • sloc: cs: 103,600; xml: 5,869; cpp: 308; sh: 48; makefile: 46
file content (62 lines) | stat: -rwxr-xr-x 2,695 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

include /usr/share/cli-common/cli.make

%:
	dh $@

override_dh_auto_clean:
	rm -rf KeePass/obj
	rm -rf Build/KeePass/
	rm -f debian/keepass2.png
	# remove files created by archmage
	rm -f Docs/arch_contents.html Docs/arch_frameset.html \
	      Docs/arch_header.html Docs/index.html Docs/arch_css.css
	rm -rf Docs/icons
	dh_auto_clean

override_dh_auto_build:
#mdtool build -c:Release -p:KeePass
	LC_ALL=C.UTF-8 xbuild /target:KeePass /property:Configuration=Release
# build an index from the raw chm source
	python -c 'import archmod.CHM; archmod.CHM.CHMDir("Docs").process_templates("Docs/Chm")'

override_dh_install:
	convert $(CURDIR)/KeePass/Resources/Icons/KeePass.ico keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/16x16/apps
	mv keepass2-11.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/16x16/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/24x24/apps
	mv keepass2-9.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/24x24/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/32x32/apps
	mv keepass2-8.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/32x32/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/48x48/apps
	mv keepass2-7.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/48x48/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/64x64/apps
	mv keepass2-6.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/64x64/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/256x256/apps
	mv keepass2-5.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/256x256/apps/keepass2.png
	rm -f keepass2*.png
	dh_install
	mv $(CURDIR)/debian/keepass2/usr/bin/keepass2.sh $(CURDIR)/debian/keepass2/usr/bin/keepass2
	# create plugin location
	mkdir $(CURDIR)/debian/keepass2/usr/lib/keepass2/Plugins

override_dh_installchangelogs:
	dh_installchangelogs Docs/History.txt

override_dh_installdocs:
	# skip signing key readme
	dh_installdocs -pkeepass2 -XReadMe_PFX.txt
	dh_installdocs -pkeepass2-doc -XReadMe_PFX.txt --link-doc=keepass2

override_dh_clideps:
	dh_clideps --exclude-moduleref=KeePassLibC32.dll --exclude-moduleref=KeePassLibC64.dll\
		--exclude-moduleref=ShlWApi.dll --exclude-moduleref=Kernel32.dll \
		--exclude-moduleref=User32.dll --exclude-moduleref=ComCtl32.dll \
		--exclude-moduleref=ComCtl32.dll --exclude-moduleref=UxTheme.dll \
		--exclude-moduleref=Shell32.dll --exclude-moduleref=DwmApi.dll \
		--exclude-moduleref=Imm32.dll --exclude-moduleref=WinMM.dll \
		--exclude-moduleref=ShCore.dll --exclude-moduleref=KtmW32.dll