diff options
author | Gerardo Zamudio <gerardo.zamudio@linux.com> | 2019-10-12 10:56:46 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-10-19 23:15:16 +0700 |
commit | 218630f0fe815b2c11d701225286b1d46e2c328d (patch) | |
tree | 26bea9a4f683ebf3edf0eaea29e62c0f7522c982 /libraries/libgaminggear/libgaminggear.SlackBuild | |
parent | 585c115a23fcac57be7a5470bc8cabae4e93cc88 (diff) |
libraries/libgaminggear: Clarified option to use custom group
Diffstat (limited to 'libraries/libgaminggear/libgaminggear.SlackBuild')
-rw-r--r-- | libraries/libgaminggear/libgaminggear.SlackBuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libraries/libgaminggear/libgaminggear.SlackBuild b/libraries/libgaminggear/libgaminggear.SlackBuild index e37f534127a03..2b4ed5a9b3ec0 100644 --- a/libraries/libgaminggear/libgaminggear.SlackBuild +++ b/libraries/libgaminggear/libgaminggear.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libgaminggear -# Copyright 2015-2016 Gerardo Zamudio <gerardo.zamudio@linux.com> Mexico City, Mexico +# Copyright 2019 Gerardo Zamudio <gerardo.zamudio@linux.com> Mexico City, Mexico # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=libgaminggear VERSION=${VERSION:-0.15.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -58,7 +58,7 @@ set -e GROUP=${GROUP:-uinput-users} -# Check the system group for uinput-users: +# Check the system group exists: if ! grep -q ^"$GROUP": /etc/group ; then echo " You will need a system group to add users to for input events to work" echo " # groupadd -r -g 317 $GROUP" @@ -99,6 +99,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/lib/udev/rules.d install -m 644 $CWD/90-uinput.rules $PKG/lib/udev/rules.d/ +# In case the default group was changed: +if [ "$GROUP" != "uinput-users" ]; then + sed -i "s|uinput-users|$GROUP|g" $PKG/lib/udev/rules.d/90-uinput.rules +fi + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |