summaryrefslogtreecommitdiff
path: root/rules
blob: f0480ac7c1d1c5b4565d476af6ccb915f43fdf68 (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
#!/usr/bin/make -f

export PYBUILD_NAME=electrum

# Ignore graphics and .mo files in addition to the default debian files
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(locale/.*/.*\.mo|data/dark/.*\.png|icons/.*\.png|LICENSE|debian/(changelog|copyright(|_hints|_newhints)|electrum.translations))$

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_installchangelogs::
	dh_installchangelogs -k RELEASE-NOTES

override_dh_auto_build::
	pyrcc5 icons.qrc -o electrum/gui/icons_rc.py
	dh_auto_build

override_dh_auto_install::
	mkdir -p debian/python3-electrum/usr/share
	dh_auto_install
	mkdir -p debian/electrum/usr/bin debian/electrum/usr/share
	mv debian/python3-electrum/usr/bin debian/electrum/usr
	mv debian/python3-electrum/usr/share/* \
	   debian/electrum/usr/share
	rm debian/python3-electrum/usr/lib/python3*/dist-packages/electrum/plugins/revealer/*.?tf