1 include /usr
/share
/dpkg
/pkg-info.mk
2 export DEB_VERSION_UPSTREAM_REVISION
4 export PACKAGE
=libjs-qrcodejs
5 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
7 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
9 GITVERSION
:=$(shell git rev-parse HEAD
)
15 rm -rf
$(BUILDDIR
).tmp
17 cp
-a debian qrcode.min.js
$(BUILDDIR
).tmp
/
18 echo
"git clone git://git.proxmox.com/git/libjs-qrcodejs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
).tmp
/debian
/SOURCE
19 mv
$(BUILDDIR
).tmp
/ $(BUILDDIR
)
24 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
30 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
40 rm -rf
$(BUILDDIR
) $(BUILDDIR
).tmp
*.
tar.gz
*.dsc
*.deb
*.changes
*.buildinfo
41 find .
-name
'*~' -exec
rm {} ';'