diff options
Diffstat (limited to '')
-rwxr-xr-x | deps/accountsservice/accountsservice.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/deps/accountsservice/accountsservice.SlackBuild b/deps/accountsservice/accountsservice.SlackBuild index e5d65ca..8ad729a 100755 --- a/deps/accountsservice/accountsservice.SlackBuild +++ b/deps/accountsservice/accountsservice.SlackBuild @@ -26,7 +26,7 @@ PKGNAM=accountsservice VERSION=${VERSION:-0.6.55} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} CWD=$(pwd) TMP=${TMP:-/tmp} @@ -80,6 +80,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Choose correct options depending on whether elogind is installed: +if [ -L /lib${LIBDIRSUFFIX}/libelogind.so.? ]; then + DO_ELOGIND=true +else + DO_ELOGIND=false +fi + export LDFLAGS="$SLKLDFLAGS" export CXXFLAGS="$SLKCFLAGS" export CFLAGS="$SLKCFLAGS" @@ -89,9 +96,10 @@ meson build \ --mandir=/usr/man \ --localstatedir=/var \ --sysconfdir=/etc \ - -D admin-group=wheel \ + -D admin_group=wheel \ -D docbook=false \ - -D gtk-doc=true \ + -D gtk_doc=true \ + -D elogind=${DO_ELOGIND} \ -D systemd=false \ -D systemdsystemunitdir=no \ -D user_heuristics=false \ |