jobcore/dbus/PKGBUILD

108 lines
2.9 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=dbus
pkgname=(dbus) # dbus-docs)
pkgver=1.14.4
pkgrel=01
pkgdesc="Freedesktop.org message bus system"
url="https://wiki.freedesktop.org/www/Software/dbus/"
arch=(x86_64)
depends=(expat audit)
makedepends=(xmlto docbook-xsl python yelp-tools doxygen git autoconf-archive automake)
#options=(debug) ## uncomment this to have the dbus-debug pkg produced
source=("git+https://gitlab.freedesktop.org/dbus/dbus.git?signed#tag=dbus-$pkgver"
no-fatal-warnings.diff dbus.tmpfiles)
prepare() {
cd dbus
# Allow us to enable checks without them being fatal
patch -Np1 -i ../no-fatal-warnings.diff
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd dbus
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--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 \
--without-systemdsystemunitdir \
--enable-inotify \
--enable-libaudit \
--disable-systemd \
--disable-user-session \
--enable-xml-docs \
--enable-doxygen-docs \
--enable-ducktype-docs \
--disable-static \
--disable-asserts \
--disable-x11-autolaunch \
--disable-checks \
--without-x
make
}
check() {
make -C dbus -j1 check
}
package_dbus() {
depends+=(libaudit.so)
provides=(libdbus libdbus-1.so)
conflicts=(libdbus)
replaces=(libdbus)
DESTDIR="$pkgdir" make -C dbus install
rm -r "$pkgdir"/{etc,var}
# # We have a pre-assigned uid (81)
# echo 'u dbus 81 "System Message Bus"' |
# install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/dbus.conf"
install -D -m0644 "$srcdir"/dbus.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/dbus.conf
# install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
# Split docs
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 dbus/COPYING
}
# Uncomment the following section to have dbus-docs produced, otherwise
# get the one from Arch and disregard anything about systemd functionality
#
#package_dbus-docs() {
# pkgdesc+=" (documentation)"
# depends=()
#
# mv doc/* "$pkgdir"
#
# install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 dbus/COPYING
#}
#
#---- license gpg-key sha256sums ----
license=(GPL custom)
validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90') # Simon McVittie <simon.mcvittie@collabora.co.uk>
sha256sums=(SKIP
6958eeec07557b92a28419eb1702331ee2f0a6fd17285e37dfb6130b9fa4cf6e # no-fatal-warnings.diff
965cef20cce35819e89c65f06a931a38bea2119b0ae9c259b5d7f9cfc3edd6d7) # dbus.tmpfiles