1 VERSION
!= dpkg-parsechangelog
-Sversion | cut
-d-
-f1
2 PACKAGE
!= dpkg-parsechangelog
-Ssource
3 PKGREL
!= dpkg-parsechangelog
-Sversion | cut
-d-
-f2
6 # h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h
7 # perl Makefile.PL PREFIX=/usr
12 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
13 GITVERSION
:=$(shell git rev-parse HEAD
)
15 BUILDSRC
=${PACKAGE}-${VERSION}
16 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
17 DSC
=${PACKAGE}_
${VERSION}-${PKGREL}.dsc
24 rsync
-a
--exclude .svn
${PPSRC}/ ${BUILDSRC}
25 cp
-a debian
${BUILDSRC}
26 echo
"git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" >${BUILDSRC}/debian
/SOURCE
31 cd
${BUILDSRC}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
36 ${DEB}: ${PPSRC}/LibArchive.xs
${BUILDSRC}
37 cd
${BUILDSRC}; dpkg-buildpackage
-b
-us
-uc
-rfakeroot
42 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist stretch
44 CLEANFILES
= *~ build
*.deb libarchive_
* libarchive-perl_
* ${BUILDSRC}