File: rules

package info (click to toggle)
python-apsw 3.40.0.0-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 4,624 kB
  • sloc: python: 10,548; ansic: 9,585; javascript: 9,244; makefile: 16; sh: 7
file content (27 lines) | stat: -rwxr-xr-x 931 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 DH_VERBOSE = 1

PYVERS = $(shell py3versions -r)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME = apsw
export PYBUILD_BUILD_ARGS = -g --enable=load_extension

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

override_dh_install:
	dh_install
	mkdir -p debian/python-apsw-doc/usr/share/doc/python-apsw
	cp -a doc debian/python-apsw-doc/usr/share/doc/python-apsw/html

# Remove Google Analytics footer (see
# http://lintian.debian.org/tags/privacy-breach-google-adsense.html)
	sed -i '/This page uses.*analytics.google.com/,/<\/div>/d' \
	    debian/python-apsw-doc/usr/share/doc/python-apsw/html/*.html

	cd debian/python-apsw-doc/usr/share/doc/python-apsw && \
		ln -sf ../../../../javascript/jquery/jquery.min.js html/_static/jquery.js
	cd debian/python-apsw-doc/usr/share/doc/python-apsw && \
		ln -sf ../../../../javascript/underscore/underscore.min.js html/_static/underscore.js