# Maintainer: Zhang Hua # Contributer: James P. Harvey # Contributer: Christoph Bayer # Contributor: Felix Yan # Contributor: Fredy GarcĂ­a pkgname=mongodb-tools-git pkgver=100.5.1.d62df26a pkgrel=1 pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities." arch=('x86_64' 'aarch64') url="https://github.com/mongodb/mongo-tools" license=('Apache') depends=('libpcap') makedepends=('go' 'git') conflicts=('mongodb-tools') provides=('mongodb-tools') source=("git+${url}") sha512sums=('SKIP') pkgver(){ cd "${srcdir}/mongo-tools" echo $(git describe --tags).$(git rev-parse --short HEAD) } build(){ cd "${srcdir}/mongo-tools" export GOPATH="${srcdir}/go" ./make build } package(){ cd "${srcdir}/mongo-tools" mkdir -p "${pkgdir}/usr/bin" install -Dm755 bin/* "${pkgdir}/usr/bin" }