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