aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb-tools/APKBUILD
blob: 7b11ffc44207cb1e7af0d84a45e5d4472eb11dc6 (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
# Contributor: Marc Vertes <mvertes@free.fr>
# Maintainer: Marc Vertes <mvertes@free.fr>
pkgname=mongodb-tools
pkgver=4.0.4
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 openssl-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
	"
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="d7900dbbd1e1e63d5518494c85559a7eab34f53ffa38880628f3dda0a71ee1211f67cf7dfaac66498b0359eca32abb9c89410e5cc56415a1594acf38ebfa226b  mongodb-tools-4.0.4.tar.gz
74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404  fix-build.patch"