2 PKGVER
!= dpkg-parsechangelog
-Sversion | cut
-d-
-f1
3 PKGREL
!= dpkg-parsechangelog
-Sversion | cut
-d-
-f2
6 BUILDSRC
:= $(SRCDIR
).tmp
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DEB1
=${PACKAGE}_
${PKGVER}-${PKGREL}_
${ARCH}.deb
12 DEB2
=${PACKAGE}-dbgsym_
${PKGVER}-${PKGREL}_
${ARCH}.deb
19 test -f
"${SRCDIR}/README" || git submodule update
--init
27 cp
-a
$(SRCDIR
) $(BUILDSRC
)
28 cp
-a debian
$(BUILDSRC
)/debian
29 echo
"git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC
)/debian
/SOURCE
30 cd
$(BUILDSRC
); dpkg-buildpackage
-rfakeroot
-b
-us
-uc
35 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist stretch
41 rm -rf
$(BUILDSRC
) *_
${ARCH}.deb
*.changes
*.dsc
*.buildinfo