]>
Commit | Line | Data |
---|---|---|
6f824841 TL |
1 | SOURCE=spice-protocol |
2 | PACKAGE=libspice-protocol | |
70c25171 | 3 | |
6f824841 TL |
4 | PKGVERSION=0.14.0 |
5 | DEBVERSION=0.14.0-1 | |
6 | PVERELEASE=pve6 | |
7 | ||
8 | VERSION := $(DEBVERSION)~$(PVERELEASE) | |
70c25171 DM |
9 | |
10 | PKGDIR=spice-protocol-${PKGVERSION} | |
11 | PKGSRC=${PKGDIR}.tar.bz2 | |
12 | ||
6f824841 TL |
13 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
14 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
70c25171 | 15 | |
6f824841 TL |
16 | DEB=$(PACKAGE)-dev_${VERSION}_all.deb |
17 | DEBS=$(DEB) | |
70c25171 | 18 | |
6f824841 TL |
19 | all: ${DEBS} |
20 | echo ${DEBS} | |
70c25171 | 21 | |
fdd3e10e | 22 | .PHONY: deb |
84efb527 | 23 | deb: $(DEB) |
6f824841 | 24 | $(DEB): $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz |
70c25171 | 25 | rm -rf ${PKGDIR} |
6f824841 TL |
26 | tar xf $(SOURCE)_$(PKGVERSION).orig.tar.bz2 |
27 | tar xf $(SOURCE)_$(DEBVERSION).debian.tar.xz -C $(SOURCE)-$(PKGVERSION) | |
28 | cat changelog.Debian $(PKGDIR)/debian/changelog > $(PKGDIR)/debian/changelog.tmp | |
29 | mv $(PKGDIR)/debian/changelog.tmp $(PKGDIR)/debian/changelog | |
30 | cd ${PKGDIR}; dpkg-buildpackage -b -us -uc | |
31 | lintian ${DEBS} | |
32 | ||
70c25171 | 33 | |
06e5c7d3 | 34 | .PHONY: download |
6f824841 TL |
35 | download: $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz |
36 | $(SOURCE)_$(PKGVERSION).orig.tar.bz2: $(SOURCE)_$(DEBVERSION).debian.tar.xz | |
37 | $(SOURCE)_$(DEBVERSION).debian.tar.xz: | |
38 | dget http://deb.debian.org/debian/pool/main/s/spice-protocol/spice-protocol_0.14.0-1.dsc | |
06e5c7d3 | 39 | |
fdd3e10e | 40 | .PHONY: upload |
6f824841 TL |
41 | upload: ${DEBS} |
42 | tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} | |
fdd3e10e | 43 | |
70c25171 | 44 | distclean: clean |
6f824841 | 45 | rm -f *.tar.* |
70c25171 DM |
46 | |
47 | .PHONY: clean | |
48 | clean: | |
6f824841 | 49 | rm -rf *~ debian/*~ *.deb *.changes *.dsc *.buildinfo $(SOURCE)-*/ ${PKGDIR} |
70c25171 DM |
50 | |
51 | .PHONY: dinstall | |
6f824841 TL |
52 | dinstall: ${DEBS} |
53 | dpkg -i ${DEBS} |