[med-svn] [r-cran-shiny] 02/06: Fix d/rules that was needing cdbs variables
Andreas Tille
tille at debian.org
Mon Nov 7 15:42:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository r-cran-shiny.
commit 5b61bcd969091ceaaafef1cedabd843a62bbaafd
Author: Andreas Tille <tille at debian.org>
Date: Mon Nov 7 15:50:11 2016 +0100
Fix d/rules that was needing cdbs variables
---
debian/rules | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/debian/rules b/debian/rules
index 5679eb4..334918f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,13 @@
#!/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
+debRlib := $(CURDIR)/debian/$(package)/$(debRdir)
+
%:
dh $@ --buildsystem R
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-shiny.git
More information about the debian-med-commit
mailing list