PACKAGE=libpve-apiclient-perl
-PKGVER=2.0
-PKGREL=4
+PKGVER=$(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
+PKGREL=$(shell dpkg-parsechangelog -Sversion | cut -d- -f2)
BUILDSRC := $(PACKAGE)-$(PKGVER)
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
PVE_COMMON_FILES= \
Exception.pm
+GITVERSION:=$(shell git rev-parse HEAD)
all: ${DEB}
rm -rf $(BUILDSRC)
rsync -a debian $(BUILDSRC)
make DESTDIR=./$(BUILDSRC) install
+ echo "git clone git://git.proxmox.com/git/pve-apiclient.git\\ngit checkout ${GITVERSION}" > $(BUILDSRC)/debian/SOURCE
.PHONY: deb
deb ${DEB}: $(BUILDSRC)