Adding python implementation as python3-qrcodegen.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
90c47e69a4
commit
bab1100fce
2 changed files with 32 additions and 3 deletions
17
debian/control
vendored
17
debian/control
vendored
|
@ -4,7 +4,10 @@ Priority: optional
|
|||
Maintainer: Daniel Baumann <daniel@debian.org>
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
dh-sequence-python3,
|
||||
node-typescript,
|
||||
python3-all,
|
||||
python3-setuptools,
|
||||
terser,
|
||||
Rules-Requires-Root: no
|
||||
Standards-Version: 4.7.2
|
||||
|
@ -27,3 +30,17 @@ Description: QR Code generator library (javascript)
|
|||
Model 2 standard.
|
||||
.
|
||||
This package contains the javascript implementation.
|
||||
|
||||
Package: python3-qrcodegen
|
||||
Architecture: all
|
||||
Section: python
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
Description: QR Code generator library (Python)
|
||||
The Nayuki QR Code generator library aims to be the best library for generating
|
||||
QR Codes by providing flexible options and absolute correctness. It supports
|
||||
all 40 versions (sizes) and all 4 error correction levels, as per the QR Code
|
||||
Model 2 standard.
|
||||
.
|
||||
This package contains the Python implementation.
|
||||
|
|
18
debian/rules
vendored
18
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
|
||||
|
||||
|
@ -25,3 +33,7 @@ override_dh_auto_install:
|
|||
ln -s /usr/share/qr-code-generator/javascript/qrcodegen.js debian/libjs-qrcodegen/usr/share/javascript/qrcodegen/qrcodegen.js
|
||||
ln -s /usr/share/qr-code-generator/javascript/qrcodegen.min.js debian/libjs-qrcodegen/usr/share/javascript/qrcodegen/qrcodegen.min.js
|
||||
ln -s /usr/share/qr-code-generator/javascript/qrcodegen.min.js.map debian/libjs-qrcodegen/usr/share/javascript/qrcodegen/qrcodegen.min.js.map
|
||||
|
||||
# python3-qrcodegen
|
||||
mkdir -p debian/python3-qrcodegen/usr/share/doc/python3-qrcodegen/examples
|
||||
cp python/*demo* debian/python3-qrcodegen/usr/share/doc/python3-qrcodegen/examples
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue