File: rules

package info (click to toggle)
r-cran-rhandsontable 0.3.6+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,920 kB
  • sloc: makefile: 18; sh: 10
file content (25 lines) | stat: -rwxr-xr-x 954 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
25
#!/usr/bin/make -f

# These definitions can be removed once #842092 is fixed
include /usr/share/dpkg/default.mk
debRreposname   := $(shell echo $(DEB_SOURCE) | 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
debRlib         := $(CURDIR)/debian/$(package)/$(debRdir)


%:
	dh $@ --buildsystem R

override_dh_install:
	dh_install
	mkdir -p $(debRlib)/$(cranNameOrig)/htmlwidgets/lib/handsontable
	cp -a debian/JS/handsontable/*.min.* $(debRlib)/$(cranNameOrig)/htmlwidgets/lib/handsontable
	cp -a debian/JS/sparkline $(debRlib)/$(cranNameOrig)/htmlwidgets/lib

override_dh_link:
	dh_link
	ln -s /usr/share/javascript/jquery/jquery.min.js $(debRlib)/$(cranNameOrig)/htmlwidgets/lib/jquery/jquery.min.js