summaryrefslogtreecommitdiff
path: root/multilib/lib32-dbus-core/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-dbus-core/PKGBUILD')
-rw-r--r--multilib/lib32-dbus-core/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/multilib/lib32-dbus-core/PKGBUILD b/multilib/lib32-dbus-core/PKGBUILD
new file mode 100644
index 000000000..ac3a2e24a
--- /dev/null
+++ b/multilib/lib32-dbus-core/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 26527 2010-09-15 22:30:16Z bluewind $
+# Maintainer : Ionut Biru <ibiru@archlinux.org>
+
+pkgname=lib32-dbus-core
+_pkgbasename=dbus-core
+pkgver=1.4.0
+pkgrel=2
+pkgdesc="Freedesktop.org message bus system (32-bit)"
+arch=('x86_64')
+url="http://www.freedesktop.org/Software/dbus"
+license=('GPL' 'custom')
+depends=('lib32-glibc' 'lib32-expat' 'dbus-core')
+makedepends=('gcc-multilib')
+options=(!libtool)
+source=(http://dbus.freedesktop.org/releases/dbus/dbus-${pkgver}.tar.gz)
+md5sums=('f59618b18d2fb2bd1fce9e1c5a2a3282')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/dbus-${pkgver}"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib32 \
+ --libexecdir=/usr/lib/dbus-1.0 --with-dbus-user=81 \
+ --with-system-pid-file=/var/run/dbus.pid \
+ --enable-inotify --disable-dnotify \
+ --disable-verbose-mode --disable-static \
+ --disable-tests --disable-asserts --without-x
+ make
+}
+package() {
+ cd "${srcdir}/dbus-${pkgver}"
+ make DESTDIR=${pkgdir} install
+
+ rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
+ rm -rf "${pkgdir}"/{etc,var}
+
+ mkdir -p "${pkgdir}/usr/share/licenses"
+ ln -s ${_pkgbasename} "${pkgdir}/usr/share/licenses/${pkgname}"
+}