]> git.proxmox.com Git - pve-libspice-server.git/blob - Makefile
bump version to 0.12.8-3
[pve-libspice-server.git] / Makefile
1 RELEASE=4.0
2
3 PACKAGE=pve-libspice-server1
4 PKGVERSION=0.12.8
5 PKGRELEASE=3
6
7 PKGDIR=spice-${PKGVERSION}
8 PKGSRC=${PKGDIR}.tar.bz2
9
10 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11 GITVERSION:=$(shell cat .git/refs/heads/master)
12
13 DEB=pve-libspice-server1_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
14 DEB_DBG=pve-libspice-server-dev_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
15 DEBS=$(DEB) $(DEB_DBG)
16
17 CELTDIR=celt-0.5.1.3
18 CELTSRC=${CELTDIR}.tar.gz
19
20 all: ${DEBS}
21 echo ${DEBS}
22
23 .PHONY: deb
24 deb: $(DEB)
25 $(DEB_DBG): $(DEB)
26 $(DEB): ${PKGSRC}
27 echo ${DEBS}
28 rm -rf ${PKGDIR}
29 tar xf ${PKGSRC}
30 # compile CELT first
31 tar xf ${CELTSRC} -C ${PKGDIR}
32 cd ${PKGDIR}; ln -s ${CELTDIR}/libcelt celt051
33 cd ${PKGDIR}/${CELTDIR}; ./configure --prefix=/usr; make
34 # now compile spice server
35 cp -a debian ${PKGDIR}/debian
36 echo "git clone git://git.proxmox.com/git/pve-libspice-server.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
37 cd ${PKGDIR}; dpkg-buildpackage -b -us -uc
38
39
40 .PHONY: download
41 download:
42 rm -f ${PKGSRC}
43 wget http://spice-space.org/download/releases/spice-${PKGVERSION}.tar.bz2
44
45 .PHONY: upload
46 upload: ${DEBS}
47 tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
48
49 distclean: clean
50
51 .PHONY: clean
52 clean:
53 rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.dsc ${PKGDIR}
54
55 .PHONY: dinstall
56 dinstall: ${DEBS}
57 dpkg -i ${DEBS}