1 include /usr
/share
/dpkg
/pkg-info.mk
3 export PACKAGE
=proxmox-widget-toolkit
4 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
5 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
6 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
8 GITVERSION
:=$(shell git rev-parse HEAD
)
11 rm -rf
${BUILDDIR} ${BUILDDIR}.tmp
12 cp
-a src
/ ${BUILDDIR}.tmp
13 cp
-a debian
${BUILDDIR}.tmp
/
14 echo
"git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp
/debian
/SOURCE
15 mv
${BUILDDIR}.tmp
/ ${BUILDDIR}
20 cd
${BUILDDIR}; dpkg-buildpackage
-b
-us
-uc
26 cd
${BUILDDIR}; dpkg-buildpackage
-S
-us
-uc
-d
35 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist buster
39 rm -rf
${BUILDDIR} ${BUILDDIR}.tmp
*.
tar.gz
*.dsc
*.deb
*.changes
*.buildinfo
40 find .
-name
'*~' -exec
rm {} ';'