diff --git a/debian/changelog b/debian/changelog
index dc35ed2..f879025 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,14 @@
zegrapher (3.1.1-2) UNRELEASED; urgency=medium
* updated d/watch file to keep tracking new upstream releases
+ * Trim trailing whitespace.
+ * Use versioned copyright format URI.
+ * Use secure URI in Homepage field.
+ * Bump debhelper from deprecated 9 to 13.
+ * Set debhelper-compat version in Build-Depends.
+ * Change priority extra to priority optional.
+ * Set upstream metadata fields: Archive, Bug-Database, Bug-Submit, Repository,
+ Repository-Browse.
--
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index ec63514..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-9
diff --git a/debian/control b/debian/control
index 68e86c7..f5d2fe7 100644
--- a/debian/control
+++ b/debian/control
@@ -1,12 +1,12 @@
Source: zegrapher
Section: science
-Priority: extra
+Priority: optional
Maintainer: Georges Khaznadar <georgesk@debian.org>
-Build-Depends: debhelper (>= 9.0.0),
+Build-Depends: debhelper-compat (= 13),
qt5-qmake, qtchooser, qtbase5-dev, libqt5webkit5-dev, qtbase5-dev-tools,
libboost-dev
Standards-Version: 4.1.1
-Homepage: http://zegrapher.com/
+Homepage: https://zegrapher.com/
Vcs-Browser: https://salsa.debian.org/georgesk/zegrapher
Vcs-Git: https://salsa.debian.org/georgesk/zegrapher.git
@@ -49,7 +49,7 @@ Description: plotting mathematical functions and sequences on the plane
functions ,sequences and parametric equation values from the graph's
scale. And if you move the graph, the table would update itself
automatically.
- ° Manual, you choose a number of empty boxes, then you'll enter by
+ ° Manual, you choose a number of empty boxes, then you'll enter by
yourself the values that you want to know.
° Semi-automatic, with a given start value, step and number of values
to display.
diff --git a/debian/copyright b/debian/copyright
index d52efbd..8db116f 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,4 +1,4 @@
-Format: http://dep.debian.net/deps/dep5
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: zegrapher
Source: http://sourceforge.net/projects/zegrapher/files/ZeGrapher%20v2.0/Sources/ZeGrapher_v2.0_Sources.7z/download
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..5cb762f
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Archive: SourceForge
+Bug-Database: https://github.com/AdelKS/ZeGrapher/issues
+Bug-Submit: https://github.com/AdelKS/ZeGrapher/issues/new
+Repository: https://github.com/AdelKS/ZeGrapher.git
+Repository-Browse: https://github.com/AdelKS/ZeGrapher