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

index 1225390a8f556ad4737acfb04828193864e8c27e..4f275a2e04bf2d2e359b0f0cf19b467dc0930502 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
+include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
+
 PACKAGE=vncterm
-# Note: also change version in debian/control and debian/changelog
-VERSION=1.5
-PACKAGERELEASE=3
-ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
 VNCVER=0.9.11
@@ -11,7 +10,7 @@ VNCDIR=libvncserver-${VNCREL}
 VNCSRC=${VNCREL}.tar.gz
 VNCLIB=${VNCDIR}/libvncserver/.libs/libvncserver.a
 
-DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb
+DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
 
 CPPFLAGS += -O2 -g -Wall -Wno-deprecated-declarations -D_GNU_SOURCE -I $(VNCDIR)
 
@@ -59,7 +58,7 @@ dinstall: ${DEB}
 
 vncterm.1: vncterm.pod
        rm -f $@
-       pod2man -n $< -s 1 -r ${VERSION} <$< >$@
+       pod2man -n $< -s 1 -r ${DEB_VERSION_UPSTREAM} <$< >$@
 
 .PHONY: deb
 deb: $(DEB)
@@ -68,7 +67,7 @@ ${DEB}:
        rsync -a . --exclude build build
        echo "git clone git://git.proxmox.com/git/vncterm.git\\ngit checkout ${GIVERSION}" > build/debian/SOURCE
        cd build; dpkg-buildpackage -rfakeroot -b -us -uc
-       lintian ${DEB}  
+       lintian ${DEB}
 
 .PHONY: upload
 upload: ${DEB}