summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-05-19 22:35:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-05-19 22:35:05 +0200
commit5c7bd142f5049a8303dd2f7cc0753141c12d70d3 (patch)
treea3439b33fb540c2c23577ccb1e0eb116930767df
parentadded missing build dep (diff)
fix build
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules13
2 files changed, 5 insertions, 10 deletions
diff --git a/debian/control b/debian/control
index 85e06ac..7e0765b 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Maintainer: Christian Pointner <equinox@spreadspace.org>
Section: utils
Priority: optional
Standards-Version: 3.9.2
-Build-Depends: debhelper (>= 9), dh-systemd, golang-go (>=2:1.5), golang-go-semver-dev
+Build-Depends: debhelper (>= 9), dh-systemd, golang-go (>=2:1.5), golang-go-semver-dev, golang-gopkg-check.v1-dev
Package: vanity
Architecture: any
diff --git a/debian/rules b/debian/rules
index 9ab11b4..6cd9887 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,10 @@
#!/usr/bin/make -f
-%:
- dh $@ --with=systemd
-
-override_dh_clean:
- dh_clean
- rm -f vanity
-override_dh_auto_configure:
+export DH_OPTIONS
+export DH_GOPKG := github.com/xiam/vanity
-override_dh_auto_build:
- go build -o vanity
+%:
+ dh $@ --buildsystem=golang --with=golang --with=systemd
override_dh_auto_install:
install -d $$(pwd)/debian/tmp/usr/bin/