[alpine-aports] [PATCH] community/mongodb-tools: upgrade to 4.0.5

Marc Vertes
Details
Message ID
<20181226131646.13816-1-mvertes@free.fr>
Sender timestamp
1545830206
DKIM signature
missing
Download raw message
Patch: +10 -4
---
 community/mongodb-tools/APKBUILD | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/community/mongodb-tools/APKBUILD b/community/mongodb-tools/APKBUILD
index 7b11ffc442..4503d47b30 100644
--- a/community/mongodb-tools/APKBUILD
+++ b/community/mongodb-tools/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Marc Vertes <mvertes@free.fr>
 # Maintainer: Marc Vertes <mvertes@free.fr>
 pkgname=mongodb-tools
-pkgver=4.0.4
+pkgver=4.0.5
 pkgrel=0
 pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
 url="https://github.com/mongodb/mongo-tools"
@@ -12,11 +12,17 @@ options="!check"
 source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz
 	fix-build.patch
 	"
-builddir="$srcdir"/mongo-tools-r$pkgver
+builddir="$srcdir/src/github.com/mongodb/mongo-tools"
+
+prepare() {
+	mkdir -p "${builddir%/*}"
+	mv "$srcdir"/mongo-tools-r$pkgver "$builddir"
+	default_prepare
+}
 
 build() {
 	cd "$builddir"
-	./build.sh sasl ssl
+	GOROOT=/usr/lib/go GOPATH="$srcdir" ./build.sh sasl ssl
 }
 
 package() {
@@ -28,5 +34,5 @@ package() {
 		"$bindir"
 }
 
-sha512sums="d7900dbbd1e1e63d5518494c85559a7eab34f53ffa38880628f3dda0a71ee1211f67cf7dfaac66498b0359eca32abb9c89410e5cc56415a1594acf38ebfa226b  mongodb-tools-4.0.4.tar.gz
+sha512sums="5a2ca0cb761895a6c3187bdf4ac0c11222ac681313c2c22801571a1147e07b7b6149150b07e58cd4487413017da56424ec494eaaf9aec9193498ee3cde73c5da  mongodb-tools-4.0.5.tar.gz
 74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404  fix-build.patch"
-- 
2.20.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---