Date: Sunday, December 30, 2018 @ 09:45:24 Author: felixonmars Revision: 418984
upgpkg: mongodb-tools 4.0.5-1 Modified: mongodb-tools/trunk/PKGBUILD ----------+ PKGBUILD | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-12-30 09:28:27 UTC (rev 418983) +++ PKGBUILD 2018-12-30 09:45:24 UTC (rev 418984) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <[email protected]> pkgname=mongodb-tools -pkgver=4.0.4 +pkgver=4.0.5 pkgrel=1 pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities." arch=('x86_64') @@ -11,17 +11,20 @@ makedepends=('go-pie') source=("$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz" "disable-sslv3.patch") -sha512sums=('d7900dbbd1e1e63d5518494c85559a7eab34f53ffa38880628f3dda0a71ee1211f67cf7dfaac66498b0359eca32abb9c89410e5cc56415a1594acf38ebfa226b' +sha512sums=('5a2ca0cb761895a6c3187bdf4ac0c11222ac681313c2c22801571a1147e07b7b6149150b07e58cd4487413017da56424ec494eaaf9aec9193498ee3cde73c5da' '674af43ebf9e73f1eae4f81c160cec4c4ea657b7e38f97929a0845d8981f9af904eca79e2144e6150774799a58074cee5b67e4385d082630c471e438981d9ea5') prepare() { - cd mongo-tools-r$pkgver - . ./set_gopath.sh + install -d build/src/github.com/mongodb + mv mongo-tools-r$pkgver build/src/github.com/mongodb/mongo-tools + cd build/src/github.com/mongodb/mongo-tools + GOROOT=/usr ./set_goenv.sh + export GOPATH="$GOPATH:$srcdir/build" mkdir bin } build() { - cd mongo-tools-r$pkgver + cd build/src/github.com/mongodb/mongo-tools for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do go build -o bin/$i -tags "ssl sasl" $i/main/$i.go done @@ -28,7 +31,7 @@ } package() { - cd mongo-tools-r$pkgver + cd build/src/github.com/mongodb/mongo-tools for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do install -Dm755 bin/$i "$pkgdir/usr/bin/$i" done
