termux-packages/packages/dbus/build.sh

37 lines
1.0 KiB
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://dbus.freedesktop.org
TERMUX_PKG_DESCRIPTION="Freedesktop.org message bus system"
TERMUX_PKG_LICENSE="GPL-2.0"
2022-01-31 19:18:51 +01:00
TERMUX_PKG_MAINTAINER="@termux"
2021-12-20 15:08:31 +01:00
TERMUX_PKG_VERSION=1.13.18
TERMUX_PKG_SRCURL="https://dbus.freedesktop.org/releases/dbus/dbus-$TERMUX_PKG_VERSION.tar.xz"
TERMUX_PKG_SHA256=8078f5c25e34ab907ce06905d969dc8ef0ccbec367e1e1707c7ecf8460f4254e
TERMUX_PKG_DEPENDS="libexpat, libx11"
TERMUX_PKG_BREAKS="dbus-dev"
TERMUX_PKG_REPLACES="dbus-dev"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-libaudit
--disable-systemd
--disable-tests
--enable-x11-autolaunch
--with-test-socket-dir=$TERMUX_PREFIX/tmp
--with-session-socket-dir=$TERMUX_PREFIX/tmp
--with-x
"
termux_step_pre_configure() {
export LIBS="-llog"
}
termux_step_create_debscripts() {
{
echo "#!${TERMUX_PREFIX}/bin/sh"
echo "if [ ! -e ${TERMUX_PREFIX}/var/lib/dbus/machine-id ]; then"
echo "mkdir -p ${TERMUX_PREFIX}/var/lib/dbus"
echo "dbus-uuidgen > ${TERMUX_PREFIX}/var/lib/dbus/machine-id"
echo "fi"
echo "exit 0"
} > postinst
}