termux-packages/packages/dbus/build.sh

30 lines
999 B
Bash
Raw Normal View History

2019-07-12 20:18:16 +02:00
TERMUX_PKG_HOMEPAGE=https://dbus.freedesktop.org
TERMUX_PKG_DESCRIPTION="Freedesktop.org message bus system"
2019-07-12 22:10:36 +02:00
TERMUX_PKG_LICENSE="GPL-2.0"
2019-07-12 20:18:16 +02:00
TERMUX_PKG_MAINTAINER="Tristan Ross <spaceboyross@yandex.com>"
TERMUX_PKG_VERSION=1.12.16
TERMUX_PKG_REVISION=2
2019-07-12 20:18:16 +02:00
TERMUX_PKG_SRCURL="https://dbus.freedesktop.org/releases/dbus/dbus-$TERMUX_PKG_VERSION.tar.gz"
2019-07-12 20:50:20 +02:00
TERMUX_PKG_SHA256=54a22d2fa42f2eb2a871f32811c6005b531b9613b1b93a0d269b05e7549fec80
2019-07-12 20:18:16 +02:00
TERMUX_PKG_DEPENDS="libexpat"
TERMUX_PKG_BREAKS="dbus-dev"
TERMUX_PKG_REPLACES="dbus-dev"
2019-07-12 20:18:16 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
2019-07-21 13:52:09 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-libaudit --disable-systemd --disable-tests"
2019-07-12 22:20:18 +02:00
termux_step_pre_configure() {
2019-07-21 13:52:09 +02:00
export LIBS="-llog"
2019-07-12 22:20:18 +02:00
autoconf -i
}
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
}