File: rules

package info (click to toggle)
a2d 2.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,088 kB
  • sloc: javascript: 4,806; python: 1,873; xml: 49; sh: 44; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 851 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
23
24
25
26
27
#!/usr/bin/make -f

export PYBUILD_NAME=a2d
export PYBUILD_DESTDIR_python3=debian/a2d/

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_install:
	dh_install
	install -d -m 755 debian/a2d/usr/share/scripts/
	install -m 755 scripts/*.sh debian/a2d/usr/share/scripts/
	find debian/a2d/usr/share/scripts/ -name "*.sh" -exec chmod +x {} \;
	dh_auto_install

override_dh_installdocs:
	PYTHONPATH=. https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' mkdocs build -d build/html

	#Remove privacy-breach URLs that cause warnings
	find -type f -name "*.html" -exec sed -i 's|https://fonts.gstatic.com|(URL removed)|g' {} +
	find -type f -name "*.html" -exec sed -i 's|https://fonts.googleapis.com|(URL removed)|g' {} +

	#Remove duplicate files
	rm -f build/html/sitemap.xml.gz

	dh_installdocs -pa2d-doc --doc-main-package=a2d-doc build/html
	dh_installdocs