#!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
+
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_HARDENING=1
-clean:
- make -C utils clean
- dh clean
+%:
+ dh ${@} --with quilt
-build:
- make -C utils rebind.so
+override_dh_auto_build:
+ compile-modules convert -f bundle app/ui.js > app.js
+ dh_auto_build
-%:
- dh ${@}
+override_dh_install:
+ cp vnc.html index.html.tpl
+ sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION_UPSTREAM_REVISION}/g" index.html.tpl
+ echo "{ \"version\": \"${DEB_VERSION_UPSTREAM_REVISION}\" }" >package.json
+ dh_install