comparison mate/mate-settings-daemon/mate-settings-daemon.sh @ 470:bf45d0fd8127

mate/mate-settings-daemon: initial import, closes #1465
author David Demelier <markand@malikania.fr>
date Sat, 06 Apr 2019 13:15:29 +0200
parents
children dbffca6c243e
comparison
equal deleted inserted replaced
469:5e1f8e58a55d 470:bf45d0fd8127
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 PKGNAME=mate-settings-daemon
19 PKGVERSION=1.22.0
20 PKGREVISION=1
21 PKGLICENSE="GPLv2 LGPLv21"
22 PKGSUMMARY="MATE settings daemon"
23 PKGDOWNLOAD="https://pub.mate-desktop.org/releases/1.22/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGDEPENDS="desktop/libnotify
25 fonts/fontconfig
26 graphics/gtk
27 lib/dbus-glib
28 lib/glib
29 mate/libmatekbd
30 mate/mate-desktop
31 x11/libxext
32 x11/libxi
33 x11/libxxf86misc"
34 PKGOPTIONS="AUDIO POLICYKIT PULSEAUDIO"
35
36 : ${CHOST:=$(uname -m)-linux-musl}
37 : ${CBUILD:=$(uname -m)-linux-musl}
38 : ${CC:=gcc}
39 : ${CFLAGS:=-O2}
40 : ${LDFLAGS:=}
41 : ${LIBS:=}
42 : ${AUDIO:=yes}
43 : ${POLICYKIT:=yes}
44
45 if [ "$AUDIO" = "yes" ]; then
46 PKGDEPENDS="mate/libmatemixer $PKGDEPENDS"
47 with_audio="--with-libmatemixer"
48 else
49 with_audio="--without-libmatemixer"
50 fi
51
52 if [ "$POLICYKIT" = "yes" ]; then
53 PKGDEPENDS="security/policykit $PKGDEPENDS"
54 with_policykit="--enable-polkit"
55 else
56 with_policykit="--disable-polkit"
57 fi
58
59 if [ "$PULSEAUDIO" = "yes" ]; then
60 PKGDEPENDS="audio/pulseaudio $PKGDEPENDS"
61 with_pulseaudio="--enable-pulse"
62 else
63 with_pulseaudio="--disable-pulse"
64 fi
65
66 build()
67 {
68 rm -rf $PKGNAME-$PKGVERSION
69 tar xvaf $PKGNAME-$PKGVERSION.tar.xz
70 pushd $PKGNAME-$PKGVERSION
71
72 # TODO: libcanberra
73 CC="$CC" \
74 CFLAGS="$CFLAGS" \
75 LDFLAGS="$LDFLAGS" \
76 LIBS="$LIBS" \
77 ./configure \
78 --build=$CBUILD \
79 --host=$CHOST \
80 --prefix=/usr \
81 --sysconfdir=/etc \
82 --disable-static \
83 --enable-shared \
84 $with_audio \
85 $with_policykit \
86 $with_pulseaudio
87 make
88 make install DESTDIR=$DESTDIR
89
90 popd
91 rm -rf $PKGNAME-$PKGVERSION
92 }