141 lines
4.5 KiB
Bash
141 lines
4.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=dbus
|
|
pkgname=(dbus dbus-docs) # dbus-daemon-units (exclusive systemd service files pkg)
|
|
pkgver=1.16.0
|
|
pkgrel=02
|
|
pkgdesc="Freedesktop.org message bus system w/o systemd"
|
|
url="https://www.freedesktop.org/wiki/Software/dbus/"
|
|
depends=(audit expat glibc libcap-ng)
|
|
makedepends=(docbook-xsl doxygen glib2 mallard-ducktype meson
|
|
python xmlto qt5-tools yelp-tools
|
|
libselinux apparmor)
|
|
source=(https://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.xz{,.asc}
|
|
0001-Arch-Linux-tweaks.patch
|
|
# dbus-reload.hook # systemd dbus reload hooks
|
|
service.reference # copy of the 2 service scripts produced by dbus-daemon-units
|
|
dbus.sysusers
|
|
dbus.tmpfiles)
|
|
|
|
prepare() {
|
|
cd dbus-$pkgver
|
|
patch -Np1 -i ../0001-Arch-Linux-tweaks.patch
|
|
}
|
|
|
|
build() {
|
|
local meson_options=(
|
|
# -D apparmor=disabled
|
|
-D apparmor=enabled
|
|
-D dbus_user=dbus
|
|
-D kqueue=disabled
|
|
-D launchd=disabled
|
|
-D relocation=disabled
|
|
# -D selinux=disabled
|
|
-D selinux=enabled
|
|
-D x11_autolaunch=disabled
|
|
-D systemd=disabled
|
|
)
|
|
|
|
arch-meson dbus-$pkgver build "${meson_options[@]}"
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
_pick() {
|
|
local p="$1" f d; shift
|
|
for f; do
|
|
d="$srcdir/$p/${f#$pkgdir/}"
|
|
mkdir -p "$(dirname "$d")"
|
|
mv "$f" "$d"
|
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
|
done
|
|
}
|
|
|
|
package_dbus() {
|
|
depends+=(
|
|
libaudit.so
|
|
libcap-ng.so
|
|
libexpat.so
|
|
libselinux
|
|
apparmor
|
|
)
|
|
provides=(
|
|
libdbus
|
|
libdbus-1.so
|
|
)
|
|
conflicts=(libdbus)
|
|
replaces=(libdbus)
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
# _pick unit "$pkgdir"/usr/lib/systemd/{system,user}/dbus.service
|
|
_pick docs "$pkgdir"/usr/share/doc
|
|
|
|
# install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 \
|
|
dbus-$pkgver/COPYING dbus-$pkgver/LICENSES/AFL-2.1.txt
|
|
|
|
install -Dm644 "$srcdir/dbus.sysusers" "$pkgdir/usr/lib/sysusers.d/dbus.conf"
|
|
install -Dm644 "$srcdir/dbus.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/dbus.conf"
|
|
|
|
}
|
|
|
|
#package_dbus-daemon-units() {
|
|
# pkgdesc+=" - Service units"
|
|
# depends=(dbus)
|
|
# provides=(dbus-units)
|
|
# conflicts=(dbus-broker-units)
|
|
#
|
|
# mv unit/* "$pkgdir"
|
|
#
|
|
# mkdir -p "$pkgdir/usr/share/licenses"
|
|
# ln -s dbus "$pkgdir/usr/share/licenses/$pkgname"
|
|
#}
|
|
|
|
package_dbus-docs() {
|
|
pkgdesc+=" - Documentation"
|
|
depends=()
|
|
|
|
mv docs/* "$pkgdir"
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 \
|
|
dbus-$pkgver/COPYING dbus-$pkgver/LICENSES/AFL-2.1.txt
|
|
install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 \
|
|
service.reference
|
|
}
|
|
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=("AFL-2.1 OR GPL-2.0-or-later")
|
|
|
|
validpgpkeys=(DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90) # Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
b2sums=('a5a3ebe777c1c0296ba7240f9ed29ad329a6578a05baf10a469ce8c7d243791d35aca42a70d04cdd88feea238d081c3c8b0db444df24abcf7ce5ffe9187a0440'
|
|
'SKIP'
|
|
'3896c994aa7afde605aebb88b7123f33c578ad1ede2dc3e76982dbc021d6994874c5c735d31a66c7b3e9d3cba77ebbba7db05013716bbac14948618b1464e4a8'
|
|
'b673473d3165e8003f9b047074afc37e745d6e2d319f4891316358bc7188d826b6d69a0c686ddd0de66107a43825b2d2942b8f845b4f56c44733ae4498125acf'
|
|
'38381ac1ef4dd66940c226192a43f158f57c3305819aba2aab575ec7a29bdcba09066d05f80d568d442bb30bb8f72fbaae5e6f8800c14231c82810ffc2384624'
|
|
'397dd449ea24a3f10a187c3e78354c93cdb1a348b940ec34663018d8093790c49ee52eddcc88df7c5518fde82ec7838207308d63c844c213223e65185732c2fa')
|
|
|
|
sha256sums=(9f8ca5eb51cbe09951aec8624b86c292990ae2428b41b856e2bed17ec65c8849 # dbus-1.16.0.tar.xz
|
|
8cfd790b20ffac07a315c879ec6becdf64cec0e0b6459b81d3f4a30a11ffbf9c # dbus-1.16.0.tar.xz.asc
|
|
df115a7dbd8701903259f8c73a31052d72b7ecd0fd1b723ff25b5073a1549166 # 0001-Arch-Linux-tweaks.patch
|
|
a00ea68e3b428fe1f58a2bd2ce8f099d97baf347c3cbcd538e4eed381da7bcc8 # service.reference
|
|
9bc34a20595df8869d43a8d9af74cbded999c9a004ec12ff8ce07d58d81018d8 # dbus.sysusers
|
|
965cef20cce35819e89c65f06a931a38bea2119b0ae9c259b5d7f9cfc3edd6d7) # dbus.tmpfiles
|
|
|
|
## 32e9f91eb9d87915a8effd8d720ae02d265f84eb7a74dd6b84f34b1a3284fee4 dbus-1.16.0-02-x86_64.pkg.tar.lz
|
|
## a6c5083d661518b815ff0d94784a4c956eaf45c1d72d8edd0bcbf1d1664ab263 dbus-docs-1.16.0-02-x86_64.pkg.tar.lz
|
|
|