]> git.proxmox.com Git - novnc-pve.git/blob - debian/rules
ship minimal packages.json
[novnc-pve.git] / debian / rules
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 export DEB_BUILD_HARDENING=1
9
10 %:
11 dh ${@} --with quilt
12
13 override_dh_auto_build:
14 compile-modules convert -f bundle app/ui.js > app.js
15 dh_auto_build
16
17 override_dh_install:
18 cp vnc.html index.html.tpl
19 sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION_UPSTREAM_REVISION}/g" index.html.tpl
20 echo "{ \"version\": \"${DEB_VERSION_UPSTREAM_REVISION}\" }" >package.json
21 dh_install