From a2b94f4e0606caa5fe2baeb963a49c94b9343d73 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 23 May 2015 13:05:47 +0200 Subject: [PATCH] Build Debian armhf and armel --- build.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/build.go b/build.go index ebc7ee5c..477a0d4e 100644 --- a/build.go +++ b/build.go @@ -278,6 +278,17 @@ func buildZip() { func buildDeb() { os.RemoveAll("deb") + // "goarch" here is set to whatever the Debian packages expect. We correct + // "it to what we actually know how to build and keep the Debian variant + // "name in "debarch". + debarch := goarch + switch goarch { + case "i386": + goarch = "386" + case "armel", "armhf": + goarch = "arm" + } + build("./cmd/syncthing", []string{"noupgrade"}) files := []archiveFile{ @@ -297,11 +308,6 @@ func buildDeb() { } } - debarch := goarch - if debarch == "386" { - debarch = "i386" - } - control := `Package: syncthing Architecture: {{arch}} Depends: libc6