summaryrefslogtreecommitdiff
path: root/community/mate-settings-daemon/PKGBUILD
blob: cb095d26501fd9a940d19875de57316d60d26fe2 (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
# Maintainer : Martin Wimpress <code@flexion.org>

pkgbase=mate-settings-daemon
pkgname=("${pkgbase}-pulseaudio" "${pkgbase}-gstreamer")
pkgver=1.8.1
pkgrel=1
url="http://mate-desktop.org"
arch=('i686' 'x86_64')
license=('GPL')
depends=('dbus-glib' 'dconf' 'fontconfig' 'gstreamer0.10-base' 'gtk2'
         'libcanberra-pulse' 'libmatekbd' 'libnotify' 'libxt' 'mate-desktop'
         'nss' 'polkit' 'pulseaudio-alsa')
makedepends=('mate-common')
source=("http://pub.mate-desktop.org/releases/1.8/${pkgbase}-${pkgver}.tar.xz")
sha1sums=('cb279e69af618f8496ef45f61325b267afba539e')
install=${pkgbase}.install

build() {
    cd "${srcdir}"
    cp -a ${pkgbase}-${pkgver}{,-gstreamer}

    # build for pulseaudio
    cd "${srcdir}/${pkgbase}-${pkgver}"
    ./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib/${pkgbase} \
        --sysconfdir=/etc \
        --with-gtk=2.0 \
        --enable-polkit \
        --enable-pulse \
        --disable-gstreamer \
        --disable-static
    make

    # build for gstreamer
    cd "${srcdir}/${pkgbase}-${pkgver}-gstreamer"
    ./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib/${pkgbase} \
        --sysconfdir=/etc \
        --with-gtk=2.0 \
        --enable-polkit \
        --enable-gstreamer \
        --disable-pulse \
        --disable-static
    make
}

package_mate-settings-daemon-pulseaudio() {
    groups=('mate')
    pkgdesc="The MATE Settings daemon (pulseaudio)"
    depends=('dbus-glib' 'dconf' 'fontconfig' 'gtk2' 'libcanberra-pulse'
            'libmatekbd' 'libnotify' 'libxt' 'mate-desktop' 'nss' 'polkit'
            'pulseaudio-alsa')
    conflicts=("${pkgbase}-gstreamer" 'mate-media-gstreamer')
    provides=("${pkgbase}")
    replaces=("${pkgbase}")
    cd "${srcdir}/${pkgbase}-${pkgver}"
    make DESTDIR="${pkgdir}" install
}

package_mate-settings-daemon-gstreamer() {
    pkgdesc="The MATE Settings daemon (GStreamer)"
    depends=('dbus-glib' 'dconf' 'fontconfig' 'gstreamer0.10-base' 'gtk2'
             'libmatekbd' 'libnotify' 'libxt' 'mate-desktop' 'nss' 'polkit')
    conflicts=("${pkgbase}-pulseaudio" 'mate-media-pulseaudio')
    provides=("${pkgbase}")
    cd "${srcdir}/${pkgbase}-${pkgver}-gstreamer"
    make DESTDIR="${pkgdir}" install
}