File: rules

package info (click to toggle)
qutebrowser 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 21,328 kB
  • sloc: python: 71,144; javascript: 31,845; sh: 874; xml: 143; makefile: 52
file content (27 lines) | stat: -rwxr-xr-x 984 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
export PYBUILD_NAME=qutebrowser
export PYBUILD_DESTDIR=debian/qutebrowser
export PYBUILD_DISABLE_python3=test
%:
	dh $@ --with python3 --buildsystem=pybuild --link-doc=qutebrowser

override_dh_auto_build:
	dh_auto_build
	a2x -f manpage doc/qutebrowser.1.asciidoc

override_dh_auto_install:
	dh_auto_install
	env PREFIX=/usr DESTDIR=debian/qutebrowser $(MAKE) -f misc/Makefile install
	rm -f debian/qutebrowser/usr/lib/python3.*/dist-packages/qutebrowser/html/COPYING.html
	# Fix accidentially set x-bit
	chmod a-x -c debian/qutebrowser/usr/share/qutebrowser/scripts/utils.py
	chmod a-x -c debian/qutebrowser/usr/share/qutebrowser/userscripts/README.md

override_dh_installchangelogs:
	dh_installchangelogs doc/changelog.asciidoc

# Fix second installation of qutebrowser binary into /usr/local/bin/
# started somewhen after setuptools 59.6.0 and latest with 65.5.0, see
# https://bugs.debian.org/1022364
override_dh_usrlocal:
	rm -rvf debian/qutebrowser/usr/local/