-RELEASE=3.0
+RELEASE=3.1
VERSION=3.0
PACKAGE=libpve-storage-perl
-PKGREL=8
+PKGREL=16
DESTDIR=
PREFIX=/usr
#ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
ARCH=all
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
install -D -m 0644 copyright debian/${DOCDIR}/copyright
install -m 0644 changelog.Debian debian/${DOCDIR}/
gzip -9 debian/${DOCDIR}/changelog.Debian
+ echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" > debian/${DOCDIR}/SOURCE
dpkg-deb --build debian
mv debian.deb ${DEB}
rm -rf debian