File: rules

package info (click to toggle)
nvpy 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,208 kB
  • sloc: python: 3,185; makefile: 26; sh: 11
file content (24 lines) | stat: -rwxr-xr-x 528 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
#!/usr/bin/make -f

export PYBUILD_NAME=nvpy
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/nvpy/

BUILD_DIR=debian/nvpy
BIN=$(BUILD_DIR)/usr/bin
SHARE=$(BUILD_DIR)/usr/share/nvpy

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

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

override_dh_install:
	dh_install
	mkdir -p $(BIN)
	cp start-nvpy.py $(BIN)/nvpy
	chmod +x $(BIN)/nvpy
	rm -rf $(SHARE)/*.egg-info
	rm $(SHARE)/nvpy/nvpy-example.cfg
	cd $(SHARE)/nvpy/icons && \
	  rm -f nvpy.ico nvpy.icns README.md