buildsys: use dpkg-dev shipped helper makefile

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-23 21:00:41 +02:00
parent 85a417055c
commit edb94d26d4

View File

@ -1,20 +1,19 @@
VERSION != dpkg-parsechangelog -Sversion | cut -d- -f1 include /usr/share/dpkg/pkg-info.mk
PACKAGE != dpkg-parsechangelog -Ssource
PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2 PACKAGE=libarchive-perl
# h2xs -Afn LibArchive # h2xs -Afn LibArchive
# h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h # h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h
# perl Makefile.PL PREFIX=/usr # perl Makefile.PL PREFIX=/usr
PPSRC = LibArchive PPSRC = LibArchive
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell git rev-parse HEAD) GITVERSION:=$(shell git rev-parse HEAD)
BUILDSRC=${PACKAGE}-${VERSION} BUILDSRC=${PACKAGE}-${DEB_VERSION_UPSTREAM}
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
all: ${DEB} all: ${DEB}