system/Solaar: Fix building on -current.

With permission from Erich.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-04-29 16:32:08 -06:00 committed by Willy Sudiarto Raharjo
parent 9963ceacc9
commit d87c5c7a9d
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=Solaar
VERSION=${VERSION:-1.1.11}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -68,7 +68,11 @@ find -L . \
python3 setup.py install --root=$PKG
mv $PKG/usr/lib $PKG/
# 20240429 46and2: make sure to only move the udev dir to $PKG/lib/
# and remove $PKG/usr/lib if empty.
mkdir $PKG/lib
mv $PKG/usr/lib/udev $PKG/lib/
rmdir --ignore-fail-on-non-empty $PKG/usr/lib
sed -i 's/#MODE="0660", GROUP="plugdev"/MODE="0660", GROUP="plugdev"/g' $PKG/lib/udev/rules.d/42-logitech-unify-permissions.rules
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION