File: rules

package info (click to toggle)
sabnzbdplus 0.7.18-1
  • links: PTS, VCS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd
  • size: 10,224 kB
  • ctags: 4,911
  • sloc: python: 34,096; sh: 102; xml: 37; makefile: 34
file content (49 lines) | stat: -rwxr-xr-x 1,545 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
#!/usr/bin/make -f
# -*- makefile -*-

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

# Install directory
DESTDIR=$(CURDIR)/debian/sabnzbdplus

%:
	dh $@ --with python2

override_dh_auto_build:
	# Generate translations
	python tools/make_mo.py
	find locale -type d -empty -delete
	# Create icons, 32x32 xpm for Debian menu, 48x48 png for XDG menu
	convert -resize 32x32 interfaces/wizard/static/images/icon_sab.png sabnzbdplus.xpm
	convert -resize 48x48 interfaces/wizard/static/images/icon_sab.png sabnzbdplus.png

override_dh_clean:
	rm -rf build/ locale/ sabnzbdplus.png sabnzbdplus.xpm
	find . -wholename "./email/*.tmpl" ! -name "*-en.tmpl" -delete
	find . -name "*.pyc" -delete
	dh_clean 

override_dh_install:
	dh_install \
		--exclude=static/MochiKit/ \
		--exclude=wizard/README.TXT \
		--exclude=Config/README.txt \
		--exclude=utils/feedparser.py \
		--exclude=utils/configobj.py \
		--exclude=excanvas/excanvas.js \
		--exclude=images-split.tar.gz \
		--exclude=cherrypy/LICENSE.txt \
		--exclude=cherrypy/cherryd \
		--exclude=cherrypy/scaffold
	mv $(DESTDIR)/usr/bin/SABnzbd.py $(DESTDIR)/usr/bin/sabnzbdplus

override_dh_installchangelogs:
	dh_installchangelogs
	dh_installchangelogs -p sabnzbdplus CHANGELOG.txt
	dh_installchangelogs -p sabnzbdplus-theme-plush -k interfaces/Plush/README.txt
	dh_installchangelogs -p sabnzbdplus-theme-smpl -k interfaces/smpl/README.txt
	dh_installchangelogs -p sabnzbdplus-theme-mobile -k interfaces/Mobile/README.txt

override_dh_installinit:
	dh_installinit -- defaults 98 02