File: rules

package info (click to toggle)
python-electrum-ecc 0.0.6%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 176 kB
  • sloc: python: 913; makefile: 7
file content (17 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

# Disable the compilation of libsecp256k1 from source and use the system library
# instead by setint the environment variable ELECTRUM_ECC_DONT_COMPILE to 1.
# This is based on the logic in setup.py.
export ELECTRUM_ECC_DONT_COMPILE=1

%:
	dh $@ --buildsystem=pybuild

override_dh_gencontrol:
	# Add the correct library package to python3-electrum-ecc's depends.
	# The library package name is not automatically detected by the build
	# system.
	dh_gencontrol -- -Vlibsecp256k1dep="$(shell dpkg-query -f \
		'$${Depends}' -W libsecp256k1-dev | \
		grep -oE 'libsecp256k1-\S+')"