File: rules

package info (click to toggle)
hippotat 1.2.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 684 kB
  • sloc: sh: 423; makefile: 130; perl: 84; python: 79; ansic: 34
file content (25 lines) | stat: -rwxr-xr-x 502 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

SHELL=/bin/bash

export PYBUILD_INSTALL_DIR=/usr/share/hippotat/python3

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

i=debian/hippotat

debian/copyright: COPYING AGPLv3+CAFv2
	cat $^ >$@.tmp && mv -f $@.tmp $@

override_dh_python3:
	dh_python3 -O--buildsystem=pybuild
	dh_installdirs /usr/sbin
	mv $i/usr/{bin,sbin}/hippotatd

override_dh_installinit:
	dh_installinit --name=hippotatd

override_dh_compress:
	find $i/usr/{bin,sbin} -type f | xargs ./subst-sys-path
	dh_compress