Adding python implementation as python3-qrcodegen.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
90c47e69a4
commit
f90a627278
2 changed files with 28 additions and 3 deletions
debian
14
debian/rules
vendored
14
debian/rules
vendored
|
@ -1,19 +1,27 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
export PYBUILD_NAME=qrcodegen
|
||||
|
||||
%:
|
||||
dh ${@}
|
||||
dh ${@} --buildsystem=pybuild --sourcedirectory=python
|
||||
|
||||
execute_after_dh_auto_clean:
|
||||
# libjs-qrcodegen
|
||||
rm -f typescript-javascript/*.js*
|
||||
|
||||
override_dh_auto_build:
|
||||
# python3-qrcodegen
|
||||
rm -rf python/*.egg-info
|
||||
|
||||
execute_after_dh_auto_build:
|
||||
# libjs-qrcodegen
|
||||
cd typescript-javascript && \
|
||||
sh ./build.sh
|
||||
|
||||
cd typescript-javascript && \
|
||||
terser qrcodegen.js -c -m -o qrcodegen.min.js --source-map
|
||||
|
||||
override_dh_auto_install:
|
||||
execute_after_dh_auto_install:
|
||||
# libjs-qrcodegen
|
||||
mkdir -p debian/libjs-qrcodegen/usr/share/qr-code-generator/javascript
|
||||
cp typescript-javascript/qrcodegen.*js* debian/libjs-qrcodegen/usr/share/qr-code-generator/javascript
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue