[arch-commits] Commit in distrobuilder/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Mon Oct 18 23:40:18 UTC 2021


    Date: Monday, October 18, 2021 @ 23:40:18
  Author: grawlinson
Revision: 1030923

upgpkg: distrobuilder 2.0-1

New upstream release.

Modified:
  distrobuilder/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-18 22:36:06 UTC (rev 1030922)
+++ PKGBUILD	2021-10-18 23:40:18 UTC (rev 1030923)
@@ -3,8 +3,8 @@
 # Contributor: Stéphane Graber <stgraber AT ubuntu DOT com>
 
 pkgname=distrobuilder
-pkgver=1.3
-pkgrel=2
+pkgver=2.0
+pkgrel=1
 pkgdesc="System container image builder for LXC and LXD"
 arch=('x86_64')
 url="https://github.com/lxc/distrobuilder"
@@ -23,7 +23,9 @@
 makedepends=('go' 'git')
 conflicts=('distrobuilder-git')
 source=("$url/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
-b2sums=('fa3b9ee784fb84f349e0646389ee4cb11811cde15da11ce7cdc2f983f39e2ced51612d734ea2093865dc4f141951287be772e414907fe09d4b364f7a70acd7f0'
+sha512sums=('9007200845ca0b2b3964eb492abe9fb5e8fecfcba0f829c8e0f22a4e0d73ffed5c8e620694193822e2bc6d07ef9ba48b873a21203998d3b149e06ee6fbf24c23'
+            'SKIP')
+b2sums=('8ad432a65ed1416c22eb674684fc3b93c7f6cba4045ba79706d7c810670187e50424b725f3d189b8e2019ee992901ace3ed4035827aa5a67dfbfb008e3dc4771'
         'SKIP')
 validpgpkeys=('602F567663E593BCBD14F338C638974D64792D67') # Stéphane Graber <stgraber at stgraber.org>
 
@@ -32,9 +34,6 @@
 
   # create folder for build output
   mkdir build
-
-  # download dependencies
-  go mod vendor
 }
 
 build() {
@@ -45,8 +44,11 @@
   export CGO_CFLAGS="$CFLAGS"
   export CGO_CXXFLAGS="$CXXFLAGS"
   export CGO_LDFLAGS="$LDFLAGS"
-  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=vendor -modcacherw"
 
+  # verify modules
+  go mod verify
+
   # build binary
   go build -v -o build ./...
 }



More information about the arch-commits mailing list