File: rules

package info (click to toggle)
librespeed-cli 1.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: sh: 35; makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --builddirectory=_build --buildsystem=golang

override_dh_auto_build:
	dh_auto_build -- -ldflags="-w -s -X 'github.com/librespeed/speedtest-cli/defs.ProgVersion=v$(DEB_VERSION_UPSTREAM)' -X 'github.com/librespeed/speedtest-cli/defs.ProgName=librespeed-cli'"

override_dh_auto_install:
	dh_auto_install -- --no-source

execute_after_dh_auto_install:
	mv $(CURDIR)/debian/librespeed-cli/usr/bin/speedtest-cli $(CURDIR)/debian/librespeed-cli/usr/bin/librespeed-cli