jobcore/dbus/PKGBUILD

113 lines
3.2 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2022-09-27 15:26:39 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2022-09-27 15:26:39 +02:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=dbus
2022-09-27 15:26:39 +02:00
pkgname=(dbus) # dbus-docs)
2022-10-09 10:59:10 +02:00
pkgver=1.14.4
2023-01-29 23:58:02 +01:00
pkgrel=02
2022-03-20 13:19:37 +01:00
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)
2022-09-27 15:26:39 +02:00
#options=(debug) ## uncomment this to have the dbus-debug pkg produced
2022-03-20 13:19:37 +01:00
source=("git+https://gitlab.freedesktop.org/dbus/dbus.git?signed#tag=dbus-$pkgver"
2023-01-29 23:58:02 +01:00
no-fatal-warnings.patch
dbus.sysusers
dbus.tmpfiles)
2022-03-20 13:19:37 +01:00
prepare() {
2023-01-29 23:58:02 +01:00
cd $pkgbase
2022-03-20 13:19:37 +01:00
# Allow us to enable checks without them being fatal
2023-01-29 23:58:02 +01:00
patch -Np2 -i ../no-fatal-warnings.patch
2022-03-20 13:19:37 +01:00
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"' |
2023-01-29 23:58:02 +01:00
# install -D -m0644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/dbus.conf"
install -D -m0644 "$srcdir/dbus.sysusers" "$pkgdir/usr/lib/sysusers.d/dbus.conf"
install -D -m0644 "$srcdir/dbus.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/dbus.conf"
2022-03-20 13:19:37 +01:00
# 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
}
2022-09-27 15:26:39 +02:00
# 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
#}
#
2022-03-20 13:19:37 +01:00
#---- license gpg-key sha256sums ----
license=(GPL custom)
validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90') # Simon McVittie <simon.mcvittie@collabora.co.uk>
sha256sums=(SKIP
2023-01-29 23:58:02 +01:00
cfe4b308c8d681f7a43984a8fe42179339d8b048c519e5edcc30074abe9451bc # no-fatal-warnings.patch
# 6958eeec07557b92a28419eb1702331ee2f0a6fd17285e37dfb6130b9fa4cf6e # no-fatal-warnings.diff
9bc34a20595df8869d43a8d9af74cbded999c9a004ec12ff8ce07d58d81018d8 # dbus.sysusers
2022-03-20 13:19:37 +01:00
965cef20cce35819e89c65f06a931a38bea2119b0ae9c259b5d7f9cfc3edd6d7) # dbus.tmpfiles