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
12 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
14 ${BUILDDIR}: src
/ debian
/
16 rsync
-a src
/ debian
$(BUILDDIR
)
17 echo
"git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR
)/debian
/SOURCE
22 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
28 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
37 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist buster
--arch
${ARCH}
39 .PHONY
: distclean clean
42 rm -rf
*~
$(PACKAGE
)-*/ *.deb
*.changes genfont
*.buildinfo
*.dsc
*.
tar.gz