diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-21 14:41:34 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-21 14:44:37 +0000 |
commit | 3ae61e4a2c720fd1d1f2b787039196ec05b03e40 (patch) | |
tree | 1810b039a7f77b2a931a1e50de6914929736c0bf | |
parent | a86740d743de969471c628c71c75d6d6678ca12c (diff) | |
download | aports-3ae61e4a2c720fd1d1f2b787039196ec05b03e40.tar.bz2 aports-3ae61e4a2c720fd1d1f2b787039196ec05b03e40.tar.xz |
testing/mongodb-tools: check() unsupported, modernize APKBUILD
-rw-r--r-- | testing/mongodb-tools/APKBUILD | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/testing/mongodb-tools/APKBUILD b/testing/mongodb-tools/APKBUILD index a1955a2e9c..628ddf4cdb 100644 --- a/testing/mongodb-tools/APKBUILD +++ b/testing/mongodb-tools/APKBUILD @@ -2,38 +2,31 @@ # Maintainer: Marc Vertes <marc.vertes@ugrid.net> pkgname=mongodb-tools pkgver=r3.4.3 -pkgrel=1 +pkgrel=2 pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities." url="https://github.com/mongodb/mongo-tools" arch="all !aarch64" license="apache" -depends="libsasl" -depends_dev="" makedepends="$depends_dev go cyrus-sasl-dev libressl-dev libpcap-dev" -install="" -subpackages="" +options="!check" source="https://github.com/mongodb/mongo-tools/archive/$pkgver/$pkgname-$pkgver.tar.gz libressl.patch - fix-build.patch" + fix-build.patch + " +builddir="$srcdir"/mongo-tools-$pkgver -_builddir="$srcdir"/mongo-tools-$pkgver prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + default_prepare } build() { - cd "$_builddir" + cd "$builddir" ./build.sh sasl ssl } package() { - cd "$_builddir/bin" + cd "$builddir/bin" local bindir="$pkgdir/usr/bin" mkdir -p "$bindir" || return 1 cp bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog mongoreplay "$bindir" || return 1 |