summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0e45a64f606927445deda56dadd11003181cd9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Zhang Hua <zhanghua.00@qq.com>
# Contributer: James P. Harvey <jamespharvey20 at gmail dot com>
# Contributer: Christoph Bayer <chrbayer@criby.de>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Fredy GarcĂ­a <frealgagu at gmail dot com>

pkgname=mongodb-tools-git
pkgver=100.5.1_1_g1f3678fa.1f3678fa
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) | sed "s/-/_/g"
}
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"
}