diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..95429f4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +PACKAGE := virtualbox-extension-pack +EXTENSION := Oracle_VM_VirtualBox_Extension_Pack + +DESTDIR := debian/$(PACKAGE)/usr/lib/virtualbox/ExtensionPacks/$(EXTENSION) + +VERSION := $(shell dpkg-parsechangelog -SVersion) +VERSION_MAJOR := $(word 1, $(subst -, ,$(VERSION))) + +%: + dh ${@} + +override_dh_auto_install: + mkdir -p $(DESTDIR) + tar xf $(EXTENSION)*.vbox-extpack -C $(DESTDIR) + + rm -rf $(DESTDIR)/darwin.* + rm -rf $(DESTDIR)/linux.x86 + rm -rf $(DESTDIR)/solaris.* + rm -rf $(DESTDIR)/win.* + + grep -Ev '(darwin|linux.x86|solaris|win).' $(DESTDIR)/ExtPack.manifest > $(DESTDIR)/ExtPack.manifest.tmp + mv $(DESTDIR)/ExtPack.manifest.tmp $(DESTDIR)/ExtPack.manifest + +override_dh_gencontrol: + dh_gencontrol -- -Vvirtualbox:Depends="virtualbox (>= $(VERSION_MAJOR))" + +override_dh_dwz: + # disabled + +override_dh_strip: + # disabled + +override_dh_strip_nondeterminism: + # disabled |