File: rules

package info (click to toggle)
python-apsw 3.34.0-r1-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,916 kB
  • sloc: python: 10,100; ansic: 9,498; javascript: 8,855; makefile: 18; sh: 7
file content (30 lines) | stat: -rwxr-xr-x 1,055 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
28
29
30
#!/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

	mkdir -p debian/python3-apsw-dbg/usr/share/doc
	ln -s python3-apsw debian/python3-apsw-dbg/usr/share/doc/python3-apsw-dbg