summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD31
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c2bd1147ef9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = mongodb-tools-bin
+ pkgdesc = The MongoDB tools provide import, export, and diagnostic capabilities.
+ pkgver = 4.0.6
+ pkgrel = 1
+ url = https://github.com/mongodb/mongo-tools
+ arch = x86_64
+ license = Apache
+ depends = openssl
+ optdepends = mongodb-compass: The MongoDB GUI
+ provides = mongodb-tools=4.0.6
+ conflicts = mongodb-tools
+ source = https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.0/multiverse/binary-amd64/mongodb-org-tools_4.0.6_amd64.deb
+ sha256sums = b5c302d6fb3365acc316532ce78d077a749f0073f76d997b7c5b85582f1b116a
+
+pkgname = mongodb-tools-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9ba05c78fc8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/mongodb-tools-bin-*
+/mongodb-org-*
+/src/
+/pkg/
+pkg/
+src/
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"
+}