summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAli Molaei2019-02-14 19:24:30 +0330
committerAli Molaei2019-02-14 19:24:30 +0330
commite0eb1712a26f2cfcf6cc23ab03474eb595003297 (patch)
treecf8f63cbc6502d53a43486e8fe4ebb0b731d27a9 /PKGBUILD
downloadaur-e0eb1712a26f2cfcf6cc23ab03474eb595003297.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..04aae95d3ca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+#Maintainer: Ali Molaei <ali dot molaei at protonmail dot com>
+
+pkgname="mongodb-tools-bin"
+pkgver="4.0.6"
+basever="4.0"
+pkgrel="1"
+pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
+arch=("x86_64")
+url="https://github.com/mongodb/mongo-tools"
+license=("Apache")
+provides=("mongodb-tools=$pkgver")
+conflicts=("mongodb-tools")
+depends=("openssl")
+optdepends=("mongodb-compass: The MongoDB GUI")
+source=("https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/${basever}/multiverse/binary-amd64/mongodb-org-tools_${pkgver}_amd64.deb")
+
+sha256sums=('b5c302d6fb3365acc316532ce78d077a749f0073f76d997b7c5b85582f1b116a')
+
+prepare() {
+ cd "${srcdir}"
+ mkdir -p "${srcdir}/output"
+ tar -xvf "${srcdir}/data.tar.xz" -C "${srcdir}/output"
+}
+
+package() {
+ mkdir -p "$pkgdir/usr"
+ mkdir -p "$pkgdir/usr/share/man"
+ cp -r "$srcdir/output/usr/bin" "$pkgdir/usr/"
+ cp -r "$srcdir/output/usr/share/man/man1" "$pkgdir/usr/share/man/"
+ rm "$pkgdir/usr/bin/install_compass"
+}