summaryrefslogtreecommitdiff
path: root/source/x/xcm/xcm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/xcm/xcm.SlackBuild')
-rwxr-xr-xsource/x/xcm/xcm.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/x/xcm/xcm.SlackBuild b/source/x/xcm/xcm.SlackBuild
index 472e5b28..b2993428 100755
--- a/source/x/xcm/xcm.SlackBuild
+++ b/source/x/xcm/xcm.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=xcm
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -94,6 +94,18 @@ make install DESTDIR=$PKG || exit 1
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+# Don't install the udev rules by default:
+mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/udev
+mv $PKG/lib/udev/rules.d/90-xcm-i2c.rules $PKG/usr/doc/$PKGNAM-$VERSION/udev
+rmdir $PKG/lib/udev/rules.d
+rmdir $PKG/lib/udev
+rmdir $PKG/lib 2> /dev/null
+cat << EOF > $PKG/usr/doc/$PKGNAM-$VERSION/udev/README
+Based on reports of problems on machines using amdgpu, the udev rules are no
+longer installed by default. But if you'd like to try them anyway, install the
+90-xcm-i2c.rules file in /lib/udev/rules.d.
+EOF
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true