diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index b408e6c..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/.pc
diff --git a/.pc/.quilt_patches b/.pc/.quilt_patches
new file mode 100644
index 0000000..6857a8d
--- /dev/null
+++ b/.pc/.quilt_patches
@@ -0,0 +1 @@
+debian/patches
diff --git a/.pc/.quilt_series b/.pc/.quilt_series
new file mode 100644
index 0000000..c206706
--- /dev/null
+++ b/.pc/.quilt_series
@@ -0,0 +1 @@
+series
diff --git a/.pc/.version b/.pc/.version
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/.pc/.version
@@ -0,0 +1 @@
+2
diff --git a/.pc/0001-buildsystem.patch/configure.ac b/.pc/0001-buildsystem.patch/configure.ac
new file mode 100644
index 0000000..0ff6114
--- /dev/null
+++ b/.pc/0001-buildsystem.patch/configure.ac
@@ -0,0 +1,52 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT(lv2dynparam1, 2)
+AC_CONFIG_AUX_DIR(config)
+AM_INIT_AUTOMAKE
+AC_CONFIG_SRCDIR([lv2dynparam.h])
+AC_CONFIG_HEADER([config.h])
+
+if test -d $srcdir/.git ; then dev_version="yes" ; else dev_version="no"; fi
+AM_CONDITIONAL(DEV_VERSION, test "$dev_version" = "yes")
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_LIBTOOL
+
+#DX_HTML_FEATURE(ON)
+#DX_CHM_FEATURE(OFF)
+#DX_CHI_FEATURE(OFF)
+#DX_MAN_FEATURE(OFF)
+#DX_RTF_FEATURE(OFF)
+#DX_XML_FEATURE(OFF)
+#DX_PDF_FEATURE(OFF)
+#DX_PS_FEATURE(OFF)
+#
+#DX_INIT_DOXYGEN(lv2dynparam, doxygen.cfg)
+
+# Checks for libraries.
+
+# Checks for header files.
+#AC_HEADER_STDC
+#AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h])
+
+PKG_CHECK_MODULES(LV2, lv2core >= 1)
+
+# Checks for typedefs, structures, and compiler characteristics.
+#AC_C_CONST
+#AC_C_INLINE
+#AC_TYPE_SIZE_T
+#AC_TYPE_UINT32_T
+
+# Checks for library functions.
+#AC_FUNC_MALLOC
+#AC_FUNC_VPRINTF
+
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([plugin/Makefile])
+AC_CONFIG_FILES([host/Makefile])
+AC_CONFIG_FILES([lv2dynparamplugin1.pc])
+AC_CONFIG_FILES([lv2dynparamhost1.pc])
+AC_OUTPUT
diff --git a/.pc/applied-patches b/.pc/applied-patches
new file mode 100644
index 0000000..a5bf41d
--- /dev/null
+++ b/.pc/applied-patches
@@ -0,0 +1,2 @@
+0001-buildsystem.patch
+fix_ftbfs.patch
diff --git a/.pc/fix_ftbfs.patch/configure.ac b/.pc/fix_ftbfs.patch/configure.ac
new file mode 100644
index 0000000..1178a6b
--- /dev/null
+++ b/.pc/fix_ftbfs.patch/configure.ac
@@ -0,0 +1,52 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT(lv2dynparam1, 2)
+AC_CONFIG_AUX_DIR(config)
+AM_INIT_AUTOMAKE(foreign)
+AC_CONFIG_SRCDIR([lv2dynparam.h])
+AC_CONFIG_HEADER([config.h])
+
+if test -d $srcdir/.git ; then dev_version="yes" ; else dev_version="no"; fi
+AM_CONDITIONAL(DEV_VERSION, test "$dev_version" = "yes")
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_LIBTOOL
+
+#DX_HTML_FEATURE(ON)
+#DX_CHM_FEATURE(OFF)
+#DX_CHI_FEATURE(OFF)
+#DX_MAN_FEATURE(OFF)
+#DX_RTF_FEATURE(OFF)
+#DX_XML_FEATURE(OFF)
+#DX_PDF_FEATURE(OFF)
+#DX_PS_FEATURE(OFF)
+#
+#DX_INIT_DOXYGEN(lv2dynparam, doxygen.cfg)
+
+# Checks for libraries.
+
+# Checks for header files.
+#AC_HEADER_STDC
+#AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h])
+
+PKG_CHECK_MODULES(LV2, lv2core >= 1)
+
+# Checks for typedefs, structures, and compiler characteristics.
+#AC_C_CONST
+#AC_C_INLINE
+#AC_TYPE_SIZE_T
+#AC_TYPE_UINT32_T
+
+# Checks for library functions.
+#AC_FUNC_MALLOC
+#AC_FUNC_VPRINTF
+
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([plugin/Makefile])
+AC_CONFIG_FILES([host/Makefile])
+AC_CONFIG_FILES([lv2dynparamplugin1.pc])
+AC_CONFIG_FILES([lv2dynparamhost1.pc])
+AC_OUTPUT
diff --git a/configure.ac b/configure.ac
index 0ff6114..5191e91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
AC_PREREQ(2.61)
AC_INIT(lv2dynparam1, 2)
AC_CONFIG_AUX_DIR(config)
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE(foreign)
AC_CONFIG_SRCDIR([lv2dynparam.h])
AC_CONFIG_HEADER([config.h])
@@ -32,7 +32,7 @@ AC_PROG_LIBTOOL
#AC_HEADER_STDC
#AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h])
-PKG_CHECK_MODULES(LV2, lv2core >= 1)
+PKG_CHECK_MODULES(LV2, lv2 >= 1)
# Checks for typedefs, structures, and compiler characteristics.
#AC_C_CONST
diff --git a/debian/changelog b/debian/changelog
index 9f655cb..0570b3d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+lv2dynparam1 (2-6.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS. (Closes: #946068)
+
+ -- Sudip Mukherjee <sudipm.mukherjee@gmail.com> Sun, 14 Jun 2020 18:57:30 +0100
+
lv2dynparam1 (2-6) unstable; urgency=medium
* Remove DMUA.
@@ -27,7 +34,7 @@ lv2dynparam1 (2-4) unstable; urgency=low
[ Jaromír Mikeš ]
* Built with Multi-Arch
- * Updated copyright file to rev. 204
+ * Updated copyright file to rev. 204
[ Alessio Treglia ]
* Bump Standards.
@@ -63,13 +70,13 @@ lv2dynparam1 (2-3) unstable; urgency=low
lv2dynparam1 (2-2) unstable; urgency=low
- * Improved copyright file
+ * Improved copyright file
-- Jaromír Mikeš <mira.mikes@seznam.cz> Tue, 8 Sep 2009 18:48:22 +0200
lv2dynparam1 (2-1) unstable; urgency=low
- * Initial release (Closes: #524285)
+ * Initial release (Closes: #524285)
-- Jaromír Mikeš <mira.mikes@seznam.cz> Tue, 1 Sep 2009 18:44:02 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
index 9da1cdb..518c9f1 100644
--- a/debian/control
+++ b/debian/control
@@ -1,19 +1,19 @@
Source: lv2dynparam1
Section: sound
Priority: optional
-Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
+Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Uploaders:
Free Ekanayaka <freee@debian.org>,
Jaromír Mikeš <mira.mikes@seznam.cz>
Build-Depends:
- debhelper-compat (= 10),
+ debhelper (>= 10~),
dh-autoreconf,
fakeroot,
lv2-dev,
pkg-config
Standards-Version: 3.9.8
-Vcs-Git: https://salsa.debian.org/multimedia-team/lv2dynparam1.git
-Vcs-Browser: https://salsa.debian.org/multimedia-team/lv2dynparam1
+Vcs-Git: https://anonscm.debian.org/git/pkg-multimedia/lv2dynparam1.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-multimedia/lv2dynparam1.git
Homepage: http://download.gna.org/lv2dynparam/
Package: liblv2dynparamhost1-1
diff --git a/debian/copyright b/debian/copyright
index 6e94900..34e2ef4 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,4 +1,4 @@
-Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lv2dynparam1
Upstream-Contact: Nedko Arnaudov <nedko@arnaudov.name>
Source: http://download.gna.org/lv2dynparam/
diff --git a/debian/patches/fix_ftbfs.patch b/debian/patches/fix_ftbfs.patch
new file mode 100644
index 0000000..c22f159
--- /dev/null
+++ b/debian/patches/fix_ftbfs.patch
@@ -0,0 +1,20 @@
+Description: Use lv2.pc
+ The dependency was changed to lv2-dev previously but lv2-dev provides lv2.pc,
+ not lv2core.pc.
+
+Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
+Bug-Debian: https://bugs.debian.org/946068
+
+---
+
+--- lv2dynparam1-2.orig/configure.ac
++++ lv2dynparam1-2/configure.ac
+@@ -32,7 +32,7 @@ AC_PROG_LIBTOOL
+ #AC_HEADER_STDC
+ #AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h])
+
+-PKG_CHECK_MODULES(LV2, lv2core >= 1)
++PKG_CHECK_MODULES(LV2, lv2 >= 1)
+
+ # Checks for typedefs, structures, and compiler characteristics.
+ #AC_C_CONST
diff --git a/debian/patches/series b/debian/patches/series
index b5c7eee..a5bf41d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-buildsystem.patch
+fix_ftbfs.patch
diff --git a/debian/source/local-options b/debian/source/local-options
deleted file mode 100644
index 9cdfca9..0000000
--- a/debian/source/local-options
+++ /dev/null
@@ -1,2 +0,0 @@
-unapply-patches
-abort-on-upstream-changes