Skip to content

Commit

Permalink
[dbus] 1.15.10-1: new upstream version, switch meson and enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eweos-helper[bot] authored and ziyao233 committed Oct 5, 2024
1 parent 2903b9e commit a0a5e55
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Maintainer: Yukari Chiba <[email protected]>

pkgname=dbus
pkgver=1.15.8
pkgrel=5
pkgver=1.15.10
pkgrel=1
pkgdesc="Freedesktop.org message bus system"
url="https://wiki.freedesktop.org/www/Software/dbus/"
arch=(x86_64 aarch64 riscv64)
license=(GPL custom)
depends=(expat)
makedepends=(python autoconf-archive linux-headers)
license=(GPL-2.0-or-later custom)
depends=(musl expat)
makedepends=(python linux-headers meson ninja libxslt)
source=(
"https://gitlab.freedesktop.org/dbus/${pkgname}/-/archive/${pkgname}-${pkgver}/dbus-${pkgname}-${pkgver}.tar.gz"
dbus.service
Expand All @@ -22,53 +22,55 @@ provides=(
libdbus
libdbus-1.so
)
sha256sums=('3ae23cd28b96beac175eab0798d65c8e21e9fcf57132d840c170aaa7b21cd818'
sha256sums=('62e68bb53e3a0df8b32c5c316e82379d34ccc17d714891f99f6b0473bd87ed0c'
'5d134f6d22600337e0b577c53213d6dc9dddd83de8dcd17f8c56f632f76ed654'
'16d5a4e3025b8c24f82ca37fa97b066b18efa872b84718e9a6c674da5d1a164e'
'da9ac8ffa3d3e063bce04332b58215e3741f4be4040307d0317a3ba775d3d68a'
'ea47f0e560b61a089a4b2eadd1bb27983694ee0ef9e5f1417658a2d56f1bd620'
'7d8d45af88ad4b4e512b4d6d42bcbe982a539418f6368b56fc4bf25950484f9b'
'fd03ccef383b40c60fa538481c276ea113709a161cc340c6db00adf99d9e7993')

prepare()
{
cd dbus-${pkgname}-${pkgver}
NOCONFIGURE=1 ./autogen.sh
}

build()
{
cd dbus-${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
ewe-meson "dbus-$pkgname-$pkgver" build \
--libexecdir=/usr/lib/dbus-1.0 \
--runstatedir=/run \
--with-console-auth-dir=/run/console/ \
--with-dbus-user=dbus \
--with-system-pid-file=/run/dbus/pid \
--with-system-socket=/run/dbus/system_bus_socket \
--enable-inotify \
--enable-user-session \
--disable-static \
--without-x
make
--localstatedir=/var \
-Druntime_dir=/run \
-Ddbus_user=dbus \
-Dsystem_pid_file=/run/dbus/pid \
-Dsystem_socket=/run/dbus/system_bus_socket \
-Dinotify=enabled \
-Duser_session=true \
-Dx11_autolaunch=disabled \
-Ddoxygen_docs=disabled \
-Dducktype_docs=disabled \
-Dqt_help=disabled \
-Dselinux=disabled \
-Dapparmor=disabled \
-Dkqueue=disabled \
-Dlaunchd=disabled \
-Dlibaudit=disabled \
-Dsystemd=disabled

meson compile -C build
}

check () {
meson test -C build
}

package()
{
DESTDIR="$pkgdir" make -C dbus-${pkgname}-${pkgver} install
meson install -C build --destdir="$pkgdir"

rm -r "$pkgdir"/{etc,var}
rm -r "$pkgdir"/usr/lib/systemd

_dinit_install_services_ $srcdir/dbus.service
_dinit_install_user_services_ $srcdir/dbus.user.service
_dinit_install_services_ "$srcdir"/dbus.service
_dinit_install_user_services_ "$srcdir"/dbus.user.service
_dinit_enable_user_services_ dbus
_dinit_install_helpers_ $srcdir/dbus-system-session
_dinit_install_user_helpers_ $srcdir/dbus-user-session
_install_sysusers_ $srcdir/dbus.sysusers
_install_tmpfiles_ $srcdir/dbus.tmpfiles
_install_license_ $srcdir/dbus-$pkgname-$pkgver/COPYING
_dinit_install_helpers_ "$srcdir"/dbus-system-session
_dinit_install_user_helpers_ "$srcdir"/dbus-user-session
_install_sysusers_ "$srcdir"/dbus.sysusers
_install_tmpfiles_ "$srcdir"/dbus.tmpfiles
_install_license_ "$srcdir/dbus-$pkgname-$pkgver/COPYING"
}

0 comments on commit a0a5e55

Please sign in to comment.