1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
6 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
7 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
9 export VERSION
=$(DEB_VERSION_UPSTREAM
)
11 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
17 rsync
-a src
/ debian
$(BUILDDIR
)
18 echo
"git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR
)/debian
/SOURCE
19 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
28 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}
30 .PHONY
: distclean clean
33 rm -rf
*~
$(BUILDDIR
) *.deb
*.changes genfont
*.buildinfo