File: rules

package info (click to toggle)
pymecavideo 7.0~alpha1a-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,796 kB
  • sloc: python: 4,619; xml: 878; makefile: 134
file content (34 lines) | stat: -rwxr-xr-x 1,123 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

PACKAGE = python3-mecavideo

%:
	dh $@ --with python3

override_dh_clean:
	find . -type d -name __pycache__ | xargs rm -rf
	dh_clean

override_dh_auto_build:
	python3 setup.py build

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE) install-for-debian
	python3 setup.py install --root $(CURDIR)/debian/$(PACKAGE)
	# remove redundant icons and video files
	find $(CURDIR)/debian/$(PACKAGE)/usr/lib -name icones -type d | xargs rm -rf
	find $(CURDIR)/debian/$(PACKAGE)/usr/lib -name video -type d | xargs rm -rf
	# remove files make_exe.py from the distribution
	find $(CURDIR)/debian/$(PACKAGE) -name make_exe.py | xargs rm -f

override_dh_compress:
	dh_compress -X.xhtml