use dpkg's packaging variable makefile fragment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-19 15:51:39 +02:00
parent 6920b2fe63
commit 7147fbfef7

View File

@ -1,13 +1,12 @@
PACKAGE=libpve-apiclient-perl
PKGVER=$(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
PKGREL=$(shell dpkg-parsechangelog -Sversion | cut -d- -f2)
include /usr/share/dpkg/default.mk
BUILDSRC := $(PACKAGE)-$(PKGVER)
DEB=$(PACKAGE)_$(PKGVER)-$(PKGREL)_all.deb
DSC=$(PACKAGE)_$(PKGVER)-$(PKGREL).dsc
PACKAGE=libpve-apiclient-perl
BUILDSRC := $(PACKAGE)-$(DEB_VERSION)
DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
DESTDIR=
PERL5DIR=$(DESTDIR)/usr/share/perl5
DOCDIR=$(DESTDIR)/usr/share/doc/$(PACKAGE)