]> git.proxmox.com Git - libarchive-perl.git/blame - Makefile
Fetch package + version from the changelog
[libarchive-perl.git] / Makefile
CommitLineData
561f47cf
RV
1VERSION != dpkg-parsechangelog -Sversion | cut -d- -f1
2PACKAGE != dpkg-parsechangelog -Ssource
3PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
918a6904
DM
4
5# h2xs -Afn LibArchive
6# h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h
7# perl Makefile.PL PREFIX=/usr
8
9#OPKGNAME = libarchive-2.2.4
10#DEB = libarchive1_2.2.4-1_i386.deb
11#DEVDEB = libarchive-dev_2.2.4-1_i386.deb
12
13PPSRC = LibArchive
eca488f9 14DEB = libarchive-perl_3.2.1-1_amd64.deb
918a6904 15
eca488f9 16all: ${DEB}
918a6904 17
eca488f9 18${DEB}: ${PPSRC}/LibArchive.xs
918a6904
DM
19 -rm -rf build
20 rsync -a --exclude .svn ${PPSRC}/ build/
21 cp -a debian build
22 cd build; dpkg-buildpackage -b -us -uc -rfakeroot
eca488f9 23 lintian ${DEB}
918a6904
DM
24
25.phony: upload
eca488f9
DM
26upload: ${DEB}
27 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
918a6904
DM
28
29CLEANFILES = *~ build *.deb libarchive_* ${OPKGNAME} libarchive-perl_*
30
31.phony: clean
32clean:
33 rm -rf ${CLEANFILES}
eca488f9
DM
34
35.PHONY: dinstall
36dinstall: ${DEB}
37 dpkg -i ${DEB}