1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
7 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
9 GITVERSION
:= $(shell git rev-parse HEAD
)
11 DEB
= ${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
12 DEB_DBG
= ${PACKAGE}-dbg_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
13 DEBS
= $(DEB
) $(DEB_DBG
)
19 test -f
"${SRCDIR}/configure" || git submodule update
--init
--recursive
21 $(BUILDDIR
): keycodemapdb | submodule
23 cp
-a
$(SRCDIR
) $(BUILDDIR
)
24 cp
-a debian
$(BUILDDIR
)/debian
25 rm -rf
$(BUILDDIR
)/ui
/keycodemapdb
26 cp
-a keycodemapdb
$(BUILDDIR
)/ui
/
27 echo
"git clone git://git.proxmox.com/git/pve-qemu.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
33 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
-j
38 cd
$(SRCDIR
) && git submodule deinit ui
/keycodemapdb || true
39 rm -rf
$(SRCDIR
)/ui
/keycodemapdb
40 mkdir
$(SRCDIR
)/ui
/keycodemapdb
41 cd
$(SRCDIR
) && git submodule update
--init ui
/keycodemapdb
44 cp
-R
$(SRCDIR
)/ui
/keycodemapdb
/* keycodemapdb
/
49 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist buster
51 .PHONY
: distclean clean
54 rm -rf
$(BUILDDIR
) $(PACKAGE
)*.deb
*.buildinfo
*.changes