1 include /usr
/share
/dpkg
/pkg-info.mk
3 PACKAGE
=libarchive-perl
6 # h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h
7 # perl Makefile.PL PREFIX=/usr
11 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
12 GITVERSION
:=$(shell git rev-parse HEAD
)
14 BUILDSRC
=${PACKAGE}-${DEB_VERSION_UPSTREAM}
15 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${ARCH}.deb
16 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
20 .PHONY
: update-bindings
22 h2xs
-M
'^(archive|ARCHIVE)_' -v
${DEB_VERSION_UPSTREAM} -On LibArchive
/usr
/include/archive.h
/usr
/include/archive_entry.h
-larchive
23 echo
"Please manually check and add the diff of the automatically generated update"
28 cp
-a
${PPSRC}/ ${BUILDSRC}
29 cp
-a debian
${BUILDSRC}
30 perl
-MDevel
::PPPort
-e
'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");'
31 echo
"git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" >${BUILDSRC}/debian
/SOURCE
36 cd
${BUILDSRC}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
41 ${DEB}: ${PPSRC}/LibArchive.xs
${BUILDSRC}
42 cd
${BUILDSRC}; dpkg-buildpackage
-b
-us
-uc
-rfakeroot
47 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist stretch
49 CLEANFILES
= *~ build
*.deb libarchive_
* libarchive-perl_
* ${BUILDSRC}