blob: 081b682c434abf783125ad905af44720c4607881 (
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.4.r6.g1d46e6e7
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"
git describe --tags --long | sed 's/v//;s/-/.r/;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"
}
|