1 include /usr
/share
/dpkg
/pkg-info.mk
5 export VERSION
=${DEB_VERSION_UPSTREAM_REVISION}
8 XTERMJSTGZ
=xterm-
${XTERMJSVER}.tgz
11 FITADDONTGZ
=xterm-addon-fit-
${FITADDONVER}.tgz
14 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
15 GITVERSION
:=$(shell git rev-parse HEAD
)
17 DEB
=${PACKAGE}_
${VERSION}_all.deb
18 DSC
=${PACKAGE}_
${VERSION}.dsc
23 ${BUILDDIR}: ${SRCDIR} debian
25 rsync
-a
${SRCDIR}/ debian
${BUILDDIR}
26 echo
"git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian
/SOURCE
31 cd
${BUILDDIR}; dpkg-buildpackage
-b
-uc
-us
38 cd
${BUILDDIR}; dpkg-buildpackage
-S
-us
-uc
-d
41 X_EXCLUSIONS
=--exclude
=addons
/attach
--exclude
=addons
/fullscreen
--exclude
=addons
/search \
42 --exclude
=addons
/terminado
--exclude
=addons
/webLinks
--exclude
=addons
/zmodem
45 wget https
://registry.npmjs.org
/xterm
/-/${XTERMJSTGZ} -O
${XTERMJSTGZ}.tmp
46 wget https
://registry.npmjs.org
/xterm-addon-fit
/-/${FITADDONTGZ} -O
${FITADDONTGZ}.tmp
47 mv
${XTERMJSTGZ}.tmp
${XTERMJSTGZ}
48 mv
${FITADDONTGZ}.tmp
${FITADDONTGZ}
49 tar -C
$(SRCDIR
)/www
-xf
${XTERMJSTGZ} package
/lib package
/css
--strip-components
=2 ${X_EXCLUSIONS}
50 tar -C
$(SRCDIR
)/www
-xf
${FITADDONTGZ} package
/lib
--strip-components
=2 ${X_EXCLUSIONS}
51 rm ${XTERMJSTGZ} ${FITADDONTGZ}
55 tar cf
- ${DEB}|ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
,pve
--dist buster
62 rm -rf
*~ debian
/*~
${PACKAGE}-*/ *.deb
*.changes
*.dsc
*.
tar.gz
*.buildinfo