1 include /usr
/share
/dpkg
/default.mk
5 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
6 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
8 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
9 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
11 # for downloading new version use `make XTERMJS_VERSION=X.Y.Z download`
12 XTERMJS_VERSION ?
= $(DEB_VERSION_UPSTREAM
)
13 FIT_ADDON_VERSION
= 0.8.0
14 WEBGL_ADDON_VERSION
= 0.16.0
21 cp
-a debian
/ src
/ Makefile
$@.tmp
22 echo
"git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout $$(git rev-parse HEAD)" \
23 > $@.tmp
/debian
/SOURCE
27 $(ORIG_SRC_TAR
): $(BUILDDIR
)
28 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
33 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
39 rm -rf
$(DSC
) $(BUILDDIR
)
43 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
44 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
49 EXCLUDED_ADDONS
=attach fullscreen search terminado webLinks zmodem
50 X_EXCLUSIONS
=$(foreach ADDON
,$(EXCLUDED_ADDONS
),--exclude
=addons
/$(ADDON
))
53 download
: XTERMJS_TGZ
= xterm-
$(XTERMJS_VERSION
).tgz
54 download
: FIT_ADDON_TGZ
= xterm-addon-fit-
$(FIT_ADDON_VERSION
).tgz
55 download
: WEBGL_ADDON_TGZ
= xterm-addon-webgl-
$(WEBGL_ADDON_VERSION
).tgz
57 wget https
://registry.npmjs.org
/xterm
/-/$(XTERMJS_TGZ
) -O
$(XTERMJS_TGZ
).tmp
58 wget https
://registry.npmjs.org
/xterm-addon-fit
/-/$(FIT_ADDON_TGZ
) -O
$(FIT_ADDON_TGZ
).tmp
59 wget https
://registry.npmjs.org
/xterm-addon-webgl
/-/$(WEBGL_ADDON_TGZ
) -O
$(WEBGL_ADDON_TGZ
).tmp
60 mv
$(XTERMJS_TGZ
).tmp
$(XTERMJS_TGZ
)
61 mv
$(FIT_ADDON_TGZ
).tmp
$(FIT_ADDON_TGZ
)
62 mv
$(WEBGL_ADDON_TGZ
).tmp
$(WEBGL_ADDON_TGZ
)
63 tar -C src
-xf
$(XTERMJS_TGZ
) package
/lib package
/css
--strip-components
=2 $(X_EXCLUSIONS
)
64 tar -C src
-xf
$(FIT_ADDON_TGZ
) package
/lib
--strip-components
=2 $(X_EXCLUSIONS
)
65 tar -C src
-xf
$(WEBGL_ADDON_TGZ
) package
/lib
--strip-components
=2 $(X_EXCLUSIONS
)
66 rm $(XTERMJS_TGZ
) $(FIT_ADDON_TGZ
) $(WEBGL_ADDON_TGZ
)
69 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
71 tar cf
- $(DEB
) |ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
,pve
,pbs
--dist $(UPLOAD_DIST
)
73 .PHONY
: clean distclean
76 rm -rf
$(PACKAGE
)-[0-9]*/ build
/
77 rm -f
*.deb
*.changes
*.dsc
*.
tar.
* *.buildinfo
*.build .do-cargo-build