blob: 95429f4ac3539e292b1e7d838a1f78a6873e5597 (
plain)
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
26
27
28
29
30
31
32
33
34
35
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
|