From d391d218a357676dacb27840f0bd84cacb1a7926 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Fri, 29 Jan 2021 20:58:50 +0000
Subject: [PATCH] Drop dh-systemd bulid dependency

---
 debian/control | 3 ++-
 debian/rules   | 4 +---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 55e3d89..27635c2 100644
--- a/debian/control
+++ b/debian/control
@@ -2,9 +2,10 @@ Source: liber
 Section: net
 Priority: extra
 Maintainer: ale <ale@incal.net>
-Build-Depends: debhelper (>= 9), dh-systemd (>= 1.5), golang-any, dh-golang
+Build-Depends: debhelper (>= 9), golang-any, dh-golang
 Standards-Version: 3.9.6
 Homepage: https://git.autistici.org/ale/liber
+XS-Go-Import-Path: git.autistici.org/ale/liber
 
 Package: liber
 Architecture: any
diff --git a/debian/rules b/debian/rules
index 2fd0f14..efb053a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-export DH_GOPKG := git.autistici.org/ale/liber
 export DH_GOLANG_EXCLUDES := vendor
 export DH_GOLANG_INSTALL_ALL := 1
 
@@ -9,8 +8,7 @@ export DH_GOLANG_INSTALL_ALL := 1
 	dh $@ --with systemd --with golang --buildsystem golang
 
 override_dh_auto_install:
-	dh_auto_install
-	$(RM) -r debian/liber/usr/share/gocode
+	dh_auto_install -- --no-source
 	install -m 755 -o root -g root -d debian/liber/usr/share/liber
 	(umask 022; cp -R --preserve=timestamps htdocs debian/liber/usr/share/liber/htdocs)
 
-- 
GitLab