File: rules

package info (click to toggle)
r-bioc-qvalue 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,932 kB
  • ctags: 6
  • sloc: sh: 19; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 630 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

debRreposname   := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}' | sed 's/r-\([a-z]\+\)-.*/\1/')
awkString       := "'/^(Package|Bundle):/ {print $$2 }'"
cranNameOrig    := $(shell awk "$(awkString)" DESCRIPTION)
cranName        := $(shell echo "$(cranNameOrig)" | tr A-Z a-z)
package         := r-$(debRreposname)-$(cranName)
debRdir         := usr/lib/R/site-library

%:
	dh $@ --buildsystem R

override_dh_fixperms:
	dh_fixperms
	find debian -name "*.bib" -exec chmod -x \{\} \;

override_dh_link:
	dh_link
	dh_link $(debRdir)/$(cranNameOrig)/doc/qvalue.pdf usr/share/doc/$(package)/qvalue.pdf