File: rules

package info (click to toggle)
gr-gsm 0.42.2.20200214-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,804 kB
  • sloc: python: 14,717; cpp: 11,671; ansic: 11,578; sh: 156; makefile: 28
file content (27 lines) | stat: -rwxr-xr-x 918 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

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH

%:
	HOME=$(CURDIR)/debian/tmp dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DPYTHON_EXECUTABLE:STRING="/usr/bin/python3"

override_dh_auto_install:
	dh_auto_install
	rm -f debian/gr-gsm/usr/lib/python3/dist-packages/grgsm/*py[co]
	rm -f debian/gr-gsm/usr/lib/python3/dist-packages/grgsm/trx/*py[co]
	# This file is fetched from libjs-jquery instead, see gr-gsm.links
	rm -f debian/gr-gsm/usr/share/doc/gr-gsm/html/jquery.js
	# Deter anyone from using the shared library directly
	rm -rf debian/gr-gsm/usr/include

# The test suite have race conditions when running in parallel, see
# <URL: https://github.com/ptrkrysik/gr-gsm/issues/324 >
override_dh_auto_test:
	dh_auto_test --no-parallel

debian/copyright:
	cme update dpkg-copyright