summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-02 15:58:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-02 15:58:33 +0000
commitf21702cf8cb1efdc1fe22f00d6c5bf928d9ba405 (patch)
tree92305fccbc3e229082abad7a0fa11fd2865c6bff
parentAdding upstream version 1.6.0+20221231. (diff)
downloadsortable-f21702cf8cb1efdc1fe22f00d6c5bf928d9ba405.tar.xz
sortable-f21702cf8cb1efdc1fe22f00d6c5bf928d9ba405.zip
Adding debian version 1.6.0+20221231-1.debian/1.6.0+20221231-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog5
-rw-r--r--debian/control25
-rw-r--r--debian/copyright38
-rw-r--r--debian/libjs-sortable.docs1
-rw-r--r--debian/libjs-sortable.install1
-rwxr-xr-xdebian/rules33
-rw-r--r--debian/source/format1
7 files changed, 104 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4109274
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sortable (1.6.0+20221231-1) experimental; urgency=low
+
+ * Initial upload to experimental.
+
+ -- Daniel Baumann <daniel.baumann@progress-linux.org> Thu, 02 Feb 2023 16:24:43 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..70be1ae
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: sortable
+Section: javascript
+Priority: optional
+Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org>
+Build-Depends:
+ debhelper-compat (= 13),
+ sassc,
+ terser,
+Rules-Requires-Root: no
+Standards-Version: 4.6.2
+Homepage: https://github.com/tofsjonas/sortable
+Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/sortable
+Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/sortable
+
+Package: libjs-sortable
+Architecture: all
+Multi-Arch: foreign
+Depends:
+ ${misc:Depends},
+Suggests:
+ javascript-common,
+Description: JavaScript table sorter
+ sortable is table sorter for HTML documents written in JavaScript. It makes any
+ table with class="sortable" sortable. That is the user can click on a table
+ header and change the sorting of the table rows.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..75083b0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sortable
+Upstream-Contact: https://github.com/tofsjonas/sortable/issues
+Source: https://github.com/tofsjonas/sortable/releases
+
+Files: *
+Copyright: 2017-2022 Jonas Earendel <tofsjonas@users.noreply.github.com>
+License: other
+
+Files: debian/*
+Copyright: 2023 Daniel Baumann <daniel.baumann@progress-linux.org>
+License: other
+
+License: other
+ This is free and unencumbered software released into the public domain.
+ .
+ Anyone is free to copy, modify, publish, use, compile, sell, or
+ distribute this software, either in source code form or as a compiled
+ binary, for any purpose, commercial or non-commercial, and by any
+ means.
+ .
+ In jurisdictions that recognize copyright laws, the author or authors
+ of this software dedicate any and all copyright interest in the
+ software to the public domain. We make this dedication for the benefit
+ of the public at large and to the detriment of our heirs and
+ successors. We intend this dedication to be an overt act of
+ relinquishment in perpetuity of all present and future rights to this
+ software under copyright law.
+ .
+ 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 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.
+ .
+ For more information, please refer to <http://unlicense.org>
diff --git a/debian/libjs-sortable.docs b/debian/libjs-sortable.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/libjs-sortable.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libjs-sortable.install b/debian/libjs-sortable.install
new file mode 100644
index 0000000..249d78a
--- /dev/null
+++ b/debian/libjs-sortable.install
@@ -0,0 +1 @@
+dist/* /usr/share/sortable
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2caf0de
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+%:
+ dh ${@}
+
+execute_after_dh_auto_clean:
+ rm -rf dist
+
+override_dh_auto_build:
+ mkdir -p dist
+ cp sortable-base.css sortable.css sortable.js dist
+
+ # minify css
+ cd dist && \
+ for FILE in *.css; \
+ do \
+ sassc --sourcemap=auto --style compressed $${FILE} $$(basename $${FILE} .css).min.css; \
+ done
+
+ # minify js
+ cd dist && \
+ for FILE in *.js; \
+ do \
+ terser --compress --mangle --source-map -o $$(basename $${FILE} .js).min.js $${FILE}; \
+ done
+
+execute_before_dh_link:
+ # javascript-common
+ cd debian/libjs-sortable && for FILE in $$(find usr/share/sortable -type f); \
+ do \
+ mkdir -p $$(dirname $$(echo $${FILE} | sed -e 's|usr/share/sortable|usr/share/javascript/sortable|')); \
+ ln -s /$${FILE} $$(echo $${FILE} | sed -e 's|usr/share/sortable|usr/share/javascript/sortable|'); \
+ done
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)