File: rules

package info (click to toggle)
assemblytics 1.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 208 kB
  • sloc: python: 577; perl: 234; sh: 110; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

libexec = debian/$(DEB_SOURCE)/usr/share/$(DEB_SOURCE)/bin

%:
	dh $@

override_dh_install:
	dh_install
	mkdir -p debian/$(DEB_SOURCE)/usr/bin
	mv $(libexec)/Assemblytics debian/$(DEB_SOURCE)/usr/bin
	sed -ri '1s|^#!\s*/usr/bin/env\s+|#!/usr/bin/|' $(libexec)/*
	sed -i  '1s|^|#!/usr/bin/Rscript\n|' $(libexec)/*.R

override_dh_fixperms:
	chmod +x $(libexec)/*
	dh_fixperms