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

Felix Yan felixonmars at archlinux.org
Wed Mar 22 05:42:45 UTC 2017


    Date: Wednesday, March 22, 2017 @ 05:42:43
  Author: felixonmars
Revision: 218295

upgpkg: mongodb-tools 3.4.2-1

OpenSSL 1.1.0 Rebuild

Modified:
  mongodb-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-22 05:39:16 UTC (rev 218294)
+++ PKGBUILD	2017-03-22 05:42:43 UTC (rev 218295)
@@ -2,34 +2,36 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=mongodb-tools
-pkgver=3.4.0
+pkgver=3.4.2
 pkgrel=1
 pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
 arch=('i686' 'x86_64')
 url="https://github.com/mongodb/mongo-tools"
 license=('Apache')
-depends=('libsasl' 'libpcap' 'gcc-libs')
-makedepends=('git' 'gcc-go')
-source=("git+https://github.com/mongodb/mongo-tools.git#tag=r$pkgver"
+depends=('libsasl' 'libpcap' 'openssl-1.0')
+makedepends=('go')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz"
         "disable-sslv3.patch")
-md5sums=('SKIP'
-         '883ddbb1a936d988c2d0c6d78644dce9')
+sha512sums=('5ad4b5421acb10010f72f6b9f8342c095c4f571ac3cb9dc3db78251262f8285a4e2bddbeed3ad26c64f36d5b33ed7f43a759c74e00d2878c0ac6a71069508a2f'
+            '674af43ebf9e73f1eae4f81c160cec4c4ea657b7e38f97929a0845d8981f9af904eca79e2144e6150774799a58074cee5b67e4385d082630c471e438981d9ea5')
 
 prepare() {
-  cd mongo-tools
+  cd mongo-tools-r$pkgver
   . ./set_gopath.sh
   mkdir bin
+
+  export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
 }
 
 build() {
-  cd mongo-tools
+  cd mongo-tools-r$pkgver
   for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog mongoreplay; do
-    go build -o bin/$i -tags "ssl sasl" -gccgoflags "$(pkg-config --libs openssl) $CFLAGS $LDFLAGS" $i/main/$i.go
+    go build -o bin/$i -tags "ssl sasl" $i/main/$i.go
   done
 }
 
 package() {
-  cd mongo-tools
+  cd mongo-tools-r$pkgver
   for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog mongoreplay; do
     install -Dm755 bin/$i "$pkgdir/usr/bin/$i"
   done



More information about the arch-commits mailing list