1 include /usr
/share
/dpkg
/pkg-info.mk
4 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION
)
5 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
7 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
8 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
10 GITVERSION
:=$(shell git rev-parse HEAD
)
16 rm -rf
$(BUILDDIR
).tmp
17 cp
-a src
$(BUILDDIR
).tmp
18 cp
-a debian
$(BUILDDIR
).tmp
/
19 echo
"git clone git://git.proxmox.com/git/libjs-qrcodejs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
).tmp
/debian
/SOURCE
20 mv
$(BUILDDIR
).tmp
/ $(BUILDDIR
)
22 $(ORIG_SRC_TAR
): $(BUILDDIR
)
23 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
28 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
37 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
38 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
45 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist buster
50 rm -rf
$(PACKAGE
)-[0-9]*/ $(PACKAGE
)*tar* *.dsc
*.deb
*.changes
*.build
*.buildinfo