From: Wolfgang Bumiller Date: Thu, 17 Jan 2019 08:32:04 +0000 (+0100) Subject: buildsys: use dpkg-parsechangelog X-Git-Url: https://git.proxmox.com/?p=lxc.git;a=commitdiff_plain;h=ead59884abfcd5b42c9af52425e4246d337a8365 buildsys: use dpkg-parsechangelog Signed-off-by: Wolfgang Bumiller --- diff --git a/Makefile b/Makefile index 365479b..eb77730 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ PACKAGE=lxc-pve -LXCVER=3.1.0 -DEBREL=1 +PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1 +PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2 SRCDIR=lxc -BUILDSRC := $(PACKAGE)-$(LXCVER) +BUILDSRC := $(PACKAGE)-$(PKGVER) ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -DEB_BASE=$(PACKAGE)_$(LXCVER)-$(DEBREL) +DEB_BASE=$(PACKAGE)_$(PKGVER)-$(PKGREL) DEB1=$(DEB_BASE)_$(ARCH).deb -DEB2=$(PACKAGE)-dev_$(LXCVER)-$(DEBREL)_$(ARCH).deb \ - $(PACKAGE)-dbgsym_$(LXCVER)-$(DEBREL)_$(ARCH).deb +DEB2=$(PACKAGE)-dev_$(PKGVER)-$(PKGREL)_$(ARCH).deb \ + $(PACKAGE)-dbgsym_$(PKGVER)-$(PKGREL)_$(ARCH).deb DEBS=$(DEB1) $(DEB2) DSC=$(DEB_BASE).dsc TARGZ=$(DEB_BASE).tar.gz