From 9dfac8c46ab89c01f831ab272d8f469071bf1e8d Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Thu, 13 May 2021 22:35:46 +0200 Subject: [PATCH] liblmdb: no need to install LICENSE file manually --- packages/liblmdb/build.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/liblmdb/build.sh b/packages/liblmdb/build.sh index db9e2b154cdb00..18ac20fe2ec178 100644 --- a/packages/liblmdb/build.sh +++ b/packages/liblmdb/build.sh @@ -1,17 +1,15 @@ TERMUX_PKG_HOMEPAGE=https://symas.com/lmdb/ TERMUX_PKG_DESCRIPTION="LMDB implements a simplified variant of the BerkeleyDB (BDB) API." TERMUX_PKG_LICENSE="OpenLDAP" +TERMUX_PKG_LICENSE_FILE="libraries/liblmdb/LICENSE" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=0.9.24 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/LMDB/lmdb/archive/LMDB_${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=44602436c52c29d4f301f55f6fd8115f945469b868348e3cddaf91ab2473ea26 -TERMUX_PKG_EXTRA_MAKE_ARGS="-C $TERMUX_PKG_SRCDIR/libraries/liblmdb" +TERMUX_PKG_EXTRA_MAKE_ARGS="-C libraries/liblmdb" +TERMUX_PKG_BUILD_IN_SRC=true termux_step_pre_configure() { CPPFLAGS+=" -DMDB_USE_ROBUST=0" } - -termux_step_install_license() { - install -Dm600 "$TERMUX_PKG_SRCDIR/libraries/liblmdb/LICENSE" \ - "$TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME/LICENSE" -}