summaryrefslogtreecommitdiff
path: root/keyboard-leds-trayicons/debian/rules
blob: e871414a17b8217a80746e7aa241bf4275cb75ff (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
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export name=keyboard-leds-trayicons
export debuilddir="debian"
export buildroot="${debuilddir}/${name}"
export _datadir="/usr/share"
export _bindir="/usr/bin"
export _indir="/usr/share/icons/hicolor/scalable/status"

%:
	dh $@

override_dh_auto_install:
	dh_auto_install

	mkdir -p ${buildroot}${_datadir}/icons/hicolor/16x16/status
	mkdir -p ${buildroot}${_datadir}/icons/hicolor/32x32/status
	mkdir -p ${buildroot}${_datadir}/icons/hicolor/48x48/status
	mkdir -p ${buildroot}${_datadir}/icons/hicolor/64x64/status
	mkdir -p ${buildroot}${_datadir}/icons/hicolor/128x128/status

	convert src${_indir}/capslock-on.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-on.png
	convert src${_indir}/capslock-on.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-on.png
	convert src${_indir}/capslock-on.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-on.png
	convert src${_indir}/capslock-on.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-on.png
	convert src${_indir}/capslock-on.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-on.png

	convert src${_indir}/capslock-off.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-off.png
	convert src${_indir}/capslock-off.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-off.png
	convert src${_indir}/capslock-off.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-off.png
	convert src${_indir}/capslock-off.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-off.png
	convert src${_indir}/capslock-off.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-off.png

	convert src${_indir}/numlock-on.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-on.png
	convert src${_indir}/numlock-on.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-on.png
	convert src${_indir}/numlock-on.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-on.png
	convert src${_indir}/numlock-on.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-on.png
	convert src${_indir}/numlock-on.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-on.png

	convert src${_indir}/numlock-off.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-off.png
	convert src${_indir}/numlock-off.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-off.png
	convert src${_indir}/numlock-off.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-off.png
	convert src${_indir}/numlock-off.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-off.png
	convert src${_indir}/numlock-off.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-off.png
bgstack15