]> git.proxmox.com Git - novnc-pve.git/commitdiff
buildsys: use dpkg-dev makefile helpers for pkg info
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 May 2019 17:22:17 +0000 (19:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 May 2019 17:22:17 +0000 (19:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 9ed180072b896e8534684f44902c42e522daed85..2de308871e9cc0ead6141fc397b0cd3b60cbd81f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,13 @@
+include /usr/share/dpkg/pkg-info.mk
+
 PACKAGE=novnc-pve
-VER=1.0.0
-PKGREL=3
 
 SRCDIR=novnc
 BUILDDIR=${SRCDIR}.tmp
 
-ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-
 GITVERSION:=$(shell git rev-parse HEAD)
 
-DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
+DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
 
 all: ${DEB}
        @echo ${DEB}