summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca97baf1fd15b8e784afa053cba47b982e29014f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Maintainer    : Vincent Grande <shoober420@gmail.com>
# Contributor   : Eric Vidal <eric@obarun.org>
# Contributor   : Jean-Michel T.Dydak <jean-michel@obarun.org>
# Contributor   : Ionut Biru <ibiru@archlinux.org>

pkgname=lib32-dbus-nosystemd-git
pkgbasename=dbus
pkgver=1.12.20
pkgrel=1
arch=('x86_64')
pkgdesc="Freedesktop.org message bus system (32-bit)"
license=(GPL custom)
url="https://gitlab.freedesktop.org/dbus/dbus"

source=("git+https://gitlab.freedesktop.org/dbus/dbus.git"
	'no-fatal-warnings.diff')

provides=(
    'lib32-libdbus' 'lib32-dbus')

conflicts=(
    'lib32-libdbus' 'lib32-dbus')

replaces=(
    'lib32-libdbus')

depends=(
    'dbus')

makedepends=(
    'lib32-gcc-libs'
    'lib32-expat'
    'git'
    'autoconf-archive')

pkgver() {
    cd "${pkgbasename}"
    git describe --tags | sed 's/^dbus-//;s/-/+/g'
}

prepare() {

    cd "${pkgbasename}"

# Allow us to enable checks without them being fatal
  patch -Np1 -i ../no-fatal-warnings.diff

    NOCONFIGURE=1 ./autogen.sh
}

build() {
    export CC="gcc -m32"
    export CXX="g++ -m32"
    export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"

    cd "${pkgbasename}"

    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --libdir=/usr/lib32 \
        --libexecdir=/usr/lib/dbus-1.0 \
        runstatedir=/run \
        --with-system-pid-file=/run/dbus/pid \
        --with-system-socket=/run/dbus/system_bus_socket \
        --with-dbus-session-bus-listen-address=unix:runtime=yes \
        --with-dbus-session-bus-connect-address=autolaunch: \
        --with-dbus-user=dbus \
        --with-console-auth-dir=/run/console/ \
        --enable-inotify \
        --disable-static \
        --disable-verbose-mode \
        --disable-asserts \
        --disable-systemd \
        --without-systemdsystemunitdir \
        --disable-user-session \
        --without-x \
        --disable-x11-autolaunch \
        --disable-checks
    make
}

#check() {
#    make -C "${pkgbasename}" check
#}

package() {
    DESTDIR="${pkgdir}" make -C "${pkgbasename}" install

    rm -r "${pkgdir}"/usr/{bin,include,lib,share}
    rm -r "${pkgdir}"/{etc,var}

    install -d "${pkgdir}/usr/share/licenses"
    ln -s "${pkgbasename}" "${pkgdir}/usr/share/licenses/${pkgname}"
}

sha256sums=('SKIP'
	    'SKIP')