File: rules

package info (click to toggle)
mate-tweak 22.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,276 kB
  • sloc: python: 1,518; sh: 76; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 491 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
#!/usr/bin/make -f

export PYBUILD_SYSTEM=distutils

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

override_dh_auto_install:
	dh_auto_install
	rm debian/mate-tweak/usr/lib/python3*/dist-packages/setup*.py*

override_dh_auto_clean:
	rm -Rf mate_tweak.egg-info/

	# dh_auto_clean with pybuild/distutils only works if setup.py is
	# present
	if [ -f setup.py ]; then \
		dh_auto_clean; \
	fi

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..