summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-30 07:42:23 +0000
committerLars Wirzenius <liw@liw.fi>2021-11-30 07:42:23 +0000
commit536262e83fc7063bd83dc1056c4c2b443e0293af (patch)
tree4dd429a5ba8f91981a507b0e3700b0dc163a2ded
parente30b766319d8a40cd5458daa782b9f3ced3ff529 (diff)
parent3e790b64621e4b2f52776a7a6f12b6fdc433a9a8 (diff)
downloadpandoc-filter-diagram-536262e83fc7063bd83dc1056c4c2b443e0293af.tar.gz
Merge branch 'debian' into 'main'
chore: add initial Debian packaing See merge request larswirzenius/pandoc-filter-diagram!2
-rw-r--r--Cargo.toml2
-rwxr-xr-xdebian/build-deb9
-rw-r--r--debian/cargo-checksum.json0
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat2
-rw-r--r--debian/control18
-rw-r--r--debian/copyright29
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
9 files changed, 80 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1c3d0c8..27d0587 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "pandoc-filter-diagram"
version = "0.1.0"
-edition = "2021"
+edition = "2018"
authors = [
"Lars Wirzenius <liw@liw.fi>",
"Daniel Silverstone <dsilvers@digital-scurf.org>",
diff --git a/debian/build-deb b/debian/build-deb
new file mode 100755
index 0000000..11f8b1f
--- /dev/null
+++ b/debian/build-deb
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -euo pipefail
+
+S="$(dpkg-parsechangelog -SSource)"
+V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
+
+git archive HEAD | gzip >"../${S}_${V}.orig.tar.gz"
+dpkg-buildpackage -us -uc
diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/cargo-checksum.json
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b1b4d93
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+pandoc-filter-diagram (0.1.0-1) unstable; urgency=low
+
+ * Initial packaging. This is not intended to be uploaded to Debian, so
+ no closing of an ITP bug.
+
+ -- Lars Wirzenius <liw@liw.fi> Tue, 30 Nov 2021 09:34:34 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..021ea30
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1,2 @@
+10
+
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e4ea16f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: pandoc-filter-diagram
+Maintainer: Lars Wirzenius <liw@liw.fi>
+Section: tex
+Priority: optional
+Standards-Version: 4.2.0
+Build-Depends:
+ debhelper (>= 10~),
+ build-essential,
+ dh-cargo
+Homepage: https://gitlab.com/larswirzenius/pandoc-filter-diagram/
+
+Package: pandoc-filter-diagram
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Built-Using: ${cargo:Built-Using}
+Description: render diagram markup as SVG for Panco
+ This can be used as a Pandoc filter to render as SVG diagrams
+ expressed using various markup languages.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..116de47
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: obnam2
+Upstream-Contact: Lars Wirzenius <liw@liw.fi>
+Source: https://gitlab.com/larswirzenius/pandoc-filter-diagram/
+
+Files: *
+Copyright: 2020-2021, Lars Wirzenius, Daniel Silverstone, pep.foundation
+License: MIT-0
+ 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.
+
+ Fork this project to create your own MIT license that you can always
+ link to.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..54cfcb2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --buildsystem cargo
+
+override_dh_auto_build:
+ cargo build --release
+
+override_dh_auto_install:
+ cargo install --path=. --root=debian/pandoc-filter-diagram
+ find debian -name '.crates*' -delete
+
+override_dh_auto_test:
+ pass
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)