2 PACKAGE
=libspice-protocol
8 VERSION
:= $(DEBVERSION
)~
$(PVERELEASE
)
10 PKGDIR
=spice-protocol-
${PKGVERSION}
11 PKGSRC
=${PKGDIR}.
tar.bz2
13 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
14 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
16 DEB
=$(PACKAGE
)-dev_
${VERSION}_all.deb
24 $(DEB
): $(SOURCE
)_
$(PKGVERSION
).orig.
tar.bz2
$(SOURCE
)_
$(DEBVERSION
).debian.
tar.xz
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
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
42 tar cf
- ${DEBS}|ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}
49 rm -rf
*~ debian
/*~
*.deb
*.changes
*.dsc
*.buildinfo
$(SOURCE
)-*/ ${PKGDIR}