Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/bleachbit
4
5 %:
6 dh $@ --buildsystem=pybuild
7
8 execute_before_dh_auto_clean:
9 find po -name "*.mo" -delete
10
11 execute_after_dh_auto_install:
12 make -C po install DESTDIR=$(CURDIR)/debian/bleachbit
13 # Remove setuptools metadata, useless for a private installation
14 rm -rf $(CURDIR)/debian/bleachbit/usr/share/bleachbit/bleachbit-*.egg-info
15 # Remove Windows-specific modules
16 rm -f $(CURDIR)/debian/bleachbit/usr/share/bleachbit/bleachbit/Winapp.py
17 rm -f $(CURDIR)/debian/bleachbit/usr/share/bleachbit/bleachbit/Windows.py
18 rm -f $(CURDIR)/debian/bleachbit/usr/share/bleachbit/bleachbit/WindowsWipe.py
19
20 override_dh_install:
21 # Do not install Windows-specific cleaners
22 dh_install $(addprefix -X,$(notdir $(shell grep -l os=.windows. $(shell grep -L -e os=.linux. -e os=.unix. cleaners/*.xml) | xargs ls)))
23 # Automatically generate .desktop file to invoke BleachBit as superuser
24 sed -e "s/Name=BleachBit/Name=BleachBit \(as root\)/; \
25 s/TryExec=bleachbit/TryExec=pkexec/; \
26 s/Exec=bleachbit/Exec=pkexec bleachbit/" \
27 org.bleachbit.BleachBit.desktop > debian/bleachbit/usr/share/applications/bleachbit-root.desktop
28
29 execute_after_dh_fixperms:
30 chmod +x $(CURDIR)/debian/bleachbit/usr/share/bleachbit/bleachbit.py
31 chmod -x $(CURDIR)/debian/bleachbit/usr/share/bleachbit/share/app-menu.ui