summaryrefslogtreecommitdiff
path: root/pcr/dbus-openrc/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-17 04:30:07 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-17 04:30:07 -0500
commit19f95c7d623dcca230cc1340efaacf4de4423e93 (patch)
tree129b546c50a22d3f775b895ade40d00bf32fb325 /pcr/dbus-openrc/PKGBUILD
parenteb82b4dd66d79ae21e3ea28e606eb02c92a8b215 (diff)
downloadabslibre-19f95c7d623dcca230cc1340efaacf4de4423e93.tar.gz
abslibre-19f95c7d623dcca230cc1340efaacf4de4423e93.tar.bz2
abslibre-19f95c7d623dcca230cc1340efaacf4de4423e93.zip
dbus-openrc: add new package to [pcr]
Diffstat (limited to 'pcr/dbus-openrc/PKGBUILD')
-rw-r--r--pcr/dbus-openrc/PKGBUILD79
1 files changed, 79 insertions, 0 deletions
diff --git a/pcr/dbus-openrc/PKGBUILD b/pcr/dbus-openrc/PKGBUILD
new file mode 100644
index 000000000..76176800d
--- /dev/null
+++ b/pcr/dbus-openrc/PKGBUILD
@@ -0,0 +1,79 @@
+# Maintainer (Manjaro): Alexey D. <lq07829icatm@rambler.ru>
+# Contributor (Manjaro): Jan de Groot <jgc@archlinux.org>
+# Contributor (Manjaro): Link Dupont <link@subpop.net>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_pkgname=dbus
+_gentoo_uri="https://raw.githubusercontent.com/gentoo/gentoo/master/sys-apps/dbus/files"
+
+pkgname=dbus-openrc
+pkgver=1.10.0
+pkgrel=3
+pkgdesc="Freedesktop.org message bus system"
+url="http://www.freedesktop.org/Software/dbus"
+arch=('i686' 'x86_64' 'armv7h')
+license=('GPL' 'custom')
+groups=('openrc-base' 'openrc-desktop')
+depends=('expat' "libdbus>=${pkgver}" 'openrc')
+makedepends=('libx11' 'xmlto' 'docbook-xsl' 'udev')
+optdepends=('libx11: dbus-launch support'
+ 'dbus-openrc: dbus openrc initscript')
+provides=('dbus-core' "dbus=${pkgver}")
+conflicts=('dbus-core' 'dbus'
+ 'systemd-sysvcompat')
+#replaces=('dbus-core' 'dbus')
+install=dbus.install
+source=("http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz" #{,.asc}
+ "dbus.initd::${_gentoo_uri}/dbus.initd"
+ '30-dbus.sh')
+sha256sums=('1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b'
+ '31281696ad3920da14fbb03d983131361665567c2d06001dbf829dc159d48375'
+ 'dc1ce6d38674bad7a48ad1911576f8bbb3819f1019126fb1ef7c3cfad16bb02a')
+
+build() {
+ cd $_pkgname-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/dbus-1.0 \
+ --with-dbus-user=dbus \
+ --with-system-pid-file=/run/dbus/pid \
+ --with-system-socket=/run/dbus/system_bus_socket \
+ --with-console-auth-dir=/run/console/ \
+ --enable-inotify \
+ --disable-verbose-mode \
+ --disable-static \
+ --disable-tests \
+ --disable-asserts \
+ --disable-systemd \
+ --enable-user-session
+
+ make
+}
+_inst_initd(){
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
+
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -i ${pkgdir}/etc/init.d/$1
+}
+
+package(){
+ cd $_pkgname-$pkgver
+
+ # Disable installation of libdbus
+ sed -i -e 's/^SUBDIRS = dbus/SUBDIRS =/' Makefile
+
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "${pkgdir}/var/run"
+ rm -rf "${pkgdir}/usr/lib/pkgconfig"
+
+ install -Dm755 ../30-dbus.sh "$pkgdir/etc/X11/xinit/xinitrc.d/30-dbus"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/dbus/COPYING"
+
+ _inst_initd 'dbus'
+
+ sed -e 's|dbus.pid|dbus/pid|g' -i "${pkgdir}/etc/init.d/dbus"
+}