diff -pruN 2.5.0-2/debian/changelog 2.5.1-1/debian/changelog
--- 2.5.0-2/debian/changelog	2016-12-20 14:36:56.000000000 +0000
+++ 2.5.1-1/debian/changelog	2019-01-16 11:05:12.000000000 +0000
@@ -1,3 +1,32 @@
+node-groove (2.5.1-1) unstable; urgency=medium
+
+  [ Jérémy Lal ]
+  * New upstream version 2.5.1
+  * Section: javascript, Priority: optional
+  * Build against libnode-dev, dh 10, node-gyp 3.8.0-2
+  * Update Vcs-* fields
+  * Remove nodejs patch
+  * Standards-Version 4.3.0
+
+  [ Bastien Roucariès ]
+   * Add myself as uploader and fix FTBFS (Closes: #918436)
+
+ -- Bastien Roucariès <rouca@debian.org>  Wed, 16 Jan 2019 12:05:12 +0100
+
+node-groove (2.5.0-4) unstable; urgency=medium
+
+  * QA upload
+  * Fix quoting for autopkgtest >= 5.2 (Closes: #894940)
+
+ -- Graham Inggs <ginggs@debian.org>  Mon, 10 Dec 2018 10:36:41 +0000
+
+node-groove (2.5.0-3) unstable; urgency=medium
+
+  * QA upload.
+  * Orphan package, set maintainer to qa group
+
+ -- Felipe Sateler <fsateler@debian.org>  Sat, 29 Sep 2018 19:37:03 -0300
+
 node-groove (2.5.0-2) unstable; urgency=medium
 
   * Team upload
diff -pruN 2.5.0-2/debian/compat 2.5.1-1/debian/compat
--- 2.5.0-2/debian/compat	2016-12-20 14:32:52.000000000 +0000
+++ 2.5.1-1/debian/compat	2019-01-16 11:05:12.000000000 +0000
@@ -1 +1 @@
-9
+10
diff -pruN 2.5.0-2/debian/control 2.5.1-1/debian/control
--- 2.5.0-2/debian/control	2016-12-20 14:36:14.000000000 +0000
+++ 2.5.1-1/debian/control	2019-01-16 11:05:12.000000000 +0000
@@ -1,13 +1,13 @@
 Source: node-groove
-Section: web
-Priority: extra
+Section: javascript
+Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
-Uploaders: Andrew Kelley <superjoe30@gmail.com>,
- Felipe Sateler <fsateler@debian.org>
+Uploaders: Bastien Roucariès <rouca@debian.org>
 Build-Depends:
- debhelper (>= 9.0.0),
+ debhelper (>= 10.0.0),
  , dh-buildinfo
- , node-gyp
+ , node-gyp (>= 3.8.0-2)
+ , libnode-dev
  , libgroove-dev (>= 4.1.1)
  , libgrooveplayer-dev (>= 4.1.1)
  , libgrooveloudness-dev (>= 4.1.1)
@@ -15,14 +15,12 @@ Build-Depends:
  , node-ncp
  , node-bindings
  , node-nan (>= 2.1.0)
- , nodejs-dev
  , mocha
- , nodejs
-Standards-Version: 3.9.8
+ , nodejs (>= 10)
+Standards-Version: 4.3.0
 Homepage: https://github.com/andrewrk/node-groove
-Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-groove.git
-Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-javascript/node-groove.git
-Testsuite: autopkgtest
+Vcs-Git: https://salsa.debian.org/js-team/node-groove.git
+Vcs-Browser: https://salsa.debian.org/js-team/node-groove
 
 Package: node-groove
 Architecture: any
diff -pruN 2.5.0-2/debian/copyright 2.5.1-1/debian/copyright
--- 2.5.0-2/debian/copyright	2016-12-20 14:32:52.000000000 +0000
+++ 2.5.1-1/debian/copyright	2019-01-16 11:05:12.000000000 +0000
@@ -1,4 +1,4 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: groove
 Upstream-Contact: https://github.com/andrewrk/node-groove/issues
 Source: https://github.com/andrewrk/node-groove
diff -pruN 2.5.0-2/debian/patches/0001-use-nodejs.patch 2.5.1-1/debian/patches/0001-use-nodejs.patch
--- 2.5.0-2/debian/patches/0001-use-nodejs.patch	2016-12-20 14:32:52.000000000 +0000
+++ 2.5.1-1/debian/patches/0001-use-nodejs.patch	1970-01-01 00:00:00.000000000 +0000
@@ -1,22 +0,0 @@
-From: Felipe Sateler <fsateler@debian.org>
-Date: Mon, 14 Dec 2015 21:03:39 -0300
-Subject: Use nodejs instead of node
-
-Forwarded: not-needed
----
- binding.gyp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/binding.gyp b/binding.gyp
-index edd135a..2fc5611 100644
---- a/binding.gyp
-+++ b/binding.gyp
-@@ -19,7 +19,7 @@
-             "-lgroovefingerprinter"
-         ],
-         "include_dirs": [
--            "<!(node -e \"require('nan')\")"
-+            "<!(nodejs -e \"require('nan')\")"
-         ]
-     }
-   ]
diff -pruN 2.5.0-2/debian/patches/series 2.5.1-1/debian/patches/series
--- 2.5.0-2/debian/patches/series	2016-12-20 14:32:52.000000000 +0000
+++ 2.5.1-1/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-0001-use-nodejs.patch
diff -pruN 2.5.0-2/debian/rules 2.5.1-1/debian/rules
--- 2.5.0-2/debian/rules	2016-12-20 14:32:52.000000000 +0000
+++ 2.5.1-1/debian/rules	2019-01-16 11:05:12.000000000 +0000
@@ -4,11 +4,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-SHLIBSDIR = debian/node-groove/usr/lib/nodejs/groove/build
-SHLIBS = groove.node
 
 %:
-	dh $@ --with nodejs
+	dh $@
 
 override_dh_auto_build:
 	node-gyp configure build
@@ -16,19 +14,13 @@ override_dh_auto_build:
 override_dh_auto_clean:
 	node-gyp clean
 
+override_dh_fixperms:
+	dh_fixperms
+	find $(CURDIR)/debian/node-groove/usr -name *.node -exec chmod 644 '{}' \;
+
 override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	mocha --reporter spec
+endif
 
-# rename .node to .so so they are detected by dh_strip dh_shlibdeps etc
-override_dh_install:
-	dh_install
-	cd $(SHLIBSDIR) && { \
-	  chmod -x $(SHLIBS); \
-	  for i in $(SHLIBS); do mv "$$i" "$${i%.node}.so"; done; }
-
-# restore .node name
-override_dh_shlibdeps:
-	dh_shlibdeps
-	cd $(SHLIBSDIR) && { \
-	  mv groove.so groove.node; }
 
diff -pruN 2.5.0-2/debian/tests/control 2.5.1-1/debian/tests/control
--- 2.5.0-2/debian/tests/control	2016-12-20 14:32:52.000000000 +0000
+++ 2.5.1-1/debian/tests/control	2019-01-16 11:05:12.000000000 +0000
@@ -1,2 +1,2 @@
-Test-Command: nodejs -e "require('"'"'groove'"'"');"
+Test-Command: nodejs -e "require('groove');"
 Depends: @
diff -pruN 2.5.0-2/package.json 2.5.1-1/package.json
--- 2.5.0-2/package.json	2015-12-14 23:44:49.000000000 +0000
+++ 2.5.1-1/package.json	2019-01-10 01:06:54.000000000 +0000
@@ -1,6 +1,6 @@
 {
   "name": "groove",
-  "version": "2.5.0",
+  "version": "2.5.1",
   "description": "bindings to libgroove - generic music player library",
   "main": "lib/index.js",
   "author": "Andrew Kelley <superjoe30@gmail.com>",
@@ -19,7 +19,7 @@
   },
   "dependencies": {
     "bindings": "~1.2.1",
-    "nan": "~2.1.0"
+    "nan": "~2.3.5"
   },
   "gypfile": true,
   "bugs": {
