# Contributor: Marc Vertes # Maintainer: Marc Vertes pkgname=mongodb-tools pkgver=4.0.3 pkgrel=0 pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities." url="https://github.com/mongodb/mongo-tools" arch="all !s390x !aarch64" license="Apache" makedepends="$depends_dev go cyrus-sasl-dev libressl-dev libpcap-dev bash" options="!check" source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz fix-build.patch fix-libressl.patch " builddir="$srcdir"/mongo-tools-r$pkgver build() { cd "$builddir" ./build.sh sasl ssl } package() { cd "$builddir/bin" local bindir="$pkgdir/usr/bin" mkdir -p "$bindir" cp bsondump mongostat mongofiles mongoexport mongoimport \ mongorestore mongodump mongotop mongoreplay \ "$bindir" } sha512sums="cbe74b3fdebd0d4f6be6e3acf7f55f5f1a551b0ad1a23d82782643d2a9eb9ea4b7e0133985485b8c5a88c1fea26595e3ed9c759f1f63b578b6472d850154d67b mongodb-tools-4.0.3.tar.gz 74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404 fix-build.patch 8f91429dc451bd0c13738415c28c853d979cc59417f8b44a2d8e3bbea588c6c0a051019f4b7db09a6dd23e1e8fa4624c6ce7737d0eff99332e37453fa4c616b8 fix-libressl.patch"