1 include /usr
/share
/dpkg
/pkg-info.mk
5 GITVERSION
:=$(shell git rev-parse HEAD
)
6 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
8 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
14 BUILDSRC
=${UPSTREAM}-${UPSTREAMTAG}
19 .PHONY
: dsc deb builddir
25 cp
-a debian
${BUILDDIR}/
26 cp
-a
${SRCDIR}/* ${BUILDDIR}/
27 echo
"git clone git://git.proxmox.com/git/pve-eslint.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian
/SOURCE
32 cd
${BUILDDIR}; dpkg-buildpackage
-S
-uc
-us
37 cd
${BUILDDIR}; dpkg-buildpackage
-b
-uc
-us
43 rm -rf
${UPSTREAM}.tmp
${UPSTREAM}
44 git clone
-b
${UPSTREAMTAG} --depth
1 https
://github.com
/eslint
/eslint
${UPSTREAM}.tmp
45 rm -rf
${UPSTREAM}.tmp
/.git
46 find
${UPSTREAM}.tmp
/ -type f
-name
'.gitignore' -delete
47 mv
${UPSTREAM}.tmp
${UPSTREAM}
49 # NOTE: needs npm installed, downloads packages from npm
51 buildupstream
: ${BUILDSRC}
52 cp
${BUILDSRC}/build
/eslint.js
${SRCDIR}/eslint.js
54 ${BUILDSRC}: ${UPSTREAM} patches
57 rsync
-ra
${UPSTREAM}/ $@.tmp
58 cd
$@.tmp
; ln
-s ..
/patches patches
59 cd
$@.tmp
; quilt push
-a
60 cd
$@.tmp
; rm -rf .
pc .
/patches
63 cd
$@
; npm run webpack
67 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
,pve
--dist buster
74 rm -rf
*~ debian
/*~
*.deb
${BUILDSRC} *.tmp
/ ${BUILDDIR} *.changes
*.
tar.gz
*.dsc
*.buildinfo