]>
Commit | Line | Data |
---|---|---|
561f47cf RV |
1 | VERSION != dpkg-parsechangelog -Sversion | cut -d- -f1 |
2 | PACKAGE != dpkg-parsechangelog -Ssource | |
3 | PKGREL != 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 | ||
13 | PPSRC = LibArchive | |
eca488f9 | 14 | DEB = libarchive-perl_3.2.1-1_amd64.deb |
918a6904 | 15 | |
eca488f9 | 16 | all: ${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 |
26 | upload: ${DEB} |
27 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch | |
918a6904 DM |
28 | |
29 | CLEANFILES = *~ build *.deb libarchive_* ${OPKGNAME} libarchive-perl_* | |
30 | ||
31 | .phony: clean | |
32 | clean: | |
33 | rm -rf ${CLEANFILES} | |
eca488f9 DM |
34 | |
35 | .PHONY: dinstall | |
36 | dinstall: ${DEB} | |
37 | dpkg -i ${DEB} |