open-zwave: Bump to 1.6-p20221117
This commit is contained in:
parent
974e7db2c1
commit
2761c109e3
|
@ -2,14 +2,31 @@ TERMUX_PKG_HOMEPAGE=https://github.com/OpenZWave/open-zwave
|
|||
TERMUX_PKG_DESCRIPTION="A C++ library to control Z-Wave Networks via a USB Z-Wave Controller"
|
||||
TERMUX_PKG_LICENSE="LGPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.6-git
|
||||
TERMUX_PKG_REVISION=5
|
||||
_COMMIT=a8aa6341f4da161d0747c9cad205d821105ed09d
|
||||
TERMUX_PKG_SRCURL=https://github.com/OpenZWave/open-zwave/archive/${_COMMIT}.tar.gz
|
||||
TERMUX_PKG_SHA256=2af7f0e58d6c28be9d2229a0ede2e0799bddba617e7fd4f1ab7edcdbad6cf487
|
||||
TERMUX_PKG_DEPENDS="libc++, libusb"
|
||||
_COMMIT=3fff11d246a0d558d26110e1db6bd634a1b347c0
|
||||
_COMMIT_DATE=20221117
|
||||
TERMUX_PKG_VERSION=1.6-p${_COMMIT_DATE}
|
||||
TERMUX_PKG_SRCURL=https://github.com/OpenZWave/open-zwave.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_DEPENDS="libc++"
|
||||
# XXX: libusb is not linked against (unexpectedly?)
|
||||
TERMUX_PKG_BUILD_DEPENDS="libusb"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git fetch --unshallow
|
||||
git checkout $_COMMIT
|
||||
|
||||
local pdate="p$(git log -1 --format=%cs | sed 's/-//g')"
|
||||
if [[ "$TERMUX_PKG_VERSION" != *"${pdate}" ]]; then
|
||||
echo -n "ERROR: The version string \"$TERMUX_PKG_VERSION\" is"
|
||||
echo -n " different from what is expected to be; should end"
|
||||
echo " with \"${pdate}\"."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
export pkgconfigdir=$TERMUX_PREFIX/lib/pkgconfig
|
||||
|
||||
CPPFLAGS+=" -Wno-error=inconsistent-missing-override"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue