RELEASE=4.0 # h2xs -Afn LibArchive # h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h # perl Makefile.PL PREFIX=/usr #OPKGNAME = libarchive-2.2.4 #DEB = libarchive1_2.2.4-1_i386.deb #DEVDEB = libarchive-dev_2.2.4-1_i386.deb PPSRC = LibArchive DEB = libarchive-perl_3.2.1-1_amd64.deb all: ${DEB} ${DEB}: ${PPSRC}/LibArchive.xs -rm -rf build rsync -a --exclude .svn ${PPSRC}/ build/ cp -a debian build cd build; dpkg-buildpackage -b -us -uc -rfakeroot lintian ${DEB} .phony: upload upload: ${DEB} tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch CLEANFILES = *~ build *.deb libarchive_* ${OPKGNAME} libarchive-perl_* .phony: clean clean: rm -rf ${CLEANFILES} .PHONY: dinstall dinstall: ${DEB} dpkg -i ${DEB}