diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1b6c71e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +nayuki-qr-code-generator (1.8.0+20250123-1) unstable; urgency=low + + * Initial upload to sid. + + -- Daniel Baumann Sun, 06 Apr 2025 10:28:21 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bebf46f --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: nayuki-qr-code-generator +Section: utils +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + node-typescript, + terser, +Rules-Requires-Root: no +Standards-Version: 4.7.2 +Homepage: https://www.nayuki.io/page/qr-code-generator-library +Vcs-Browser: https://forgejo.debian.net/web/nayuki-qr-code-generator +Vcs-Git: https://forgejo.debian.net/web/nayuki-qr-code-generator + +Package: libjs-qrcodegen +Architecture: all +Multi-Arch: foreign +Section: web +Depends: + ${misc:Depends}, +Suggests: + javascript-common, +Description: QR Code generator library (javascript) + 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 javascript implementation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..559d029 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: QR Code generator library +Upstream-Contact: https://github.com/nayuki/QR-Code-generator/issues +Source: https://github.com/nayuki/QR-Code-generator/tags + +Files: * +Copyright: 2016-2025 Project Nayuki +License: MIT + +Files: debian/* +Copyright: 2025 Daniel Baumann +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..211e56c --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +%: + dh ${@} + +execute_after_dh_auto_clean: + rm -f typescript-javascript/*.js* + +override_dh_auto_build: + cd typescript-javascript && \ + sh ./build.sh + + cd typescript-javascript && \ + terser qrcodegen.js -c -m -o qrcodegen.min.js --source-map + +override_dh_auto_install: + 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 + + mkdir -p debian/libjs-qrcodegen/usr/share/doc/libjs-qrcodegen/examples + cp typescript-javascript/*demo*.html debian/libjs-qrcodegen/usr/share/doc/libjs-qrcodegen/examples + cp typescript-javascript/*demo*.js debian/libjs-qrcodegen/usr/share/doc/libjs-qrcodegen/examples + + mkdir -p debian/libjs-qrcodegen/usr/share/javascript/qrcodegen + 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 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..ed72f49 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/QR-Code-generator-$1\.tar\.gz/, \ + dversionmangle=s/\+dfsg//" \ +https://github.com/nayuki/QR-Code-generator/tags .*/v?(\d\S+)\.tar\.gz