summaryrefslogtreecommitdiffstats
path: root/libraries/libcec/libcec.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libcec/libcec.SlackBuild')
-rw-r--r--libraries/libcec/libcec.SlackBuild20
1 files changed, 7 insertions, 13 deletions
diff --git a/libraries/libcec/libcec.SlackBuild b/libraries/libcec/libcec.SlackBuild
index e441c6bec1..07cbbd59a0 100644
--- a/libraries/libcec/libcec.SlackBuild
+++ b/libraries/libcec/libcec.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libcec
-# Copyright 2011-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2011-2017 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libcec
-VERSION=${VERSION:-3.0.1}
+VERSION=${VERSION:-4.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,12 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Fix libcec-3.0.1 issue 112/115 on Github (upstream commit 2f32a9d)
-patch -p1 < $CWD/libcec-3.0.1_2f32a9d.patch
-
# Fix python install folder.
sed -i \
- -e "s|lib/|lib${LIBDIRSUFFIX}/|" -e 's|dist-|site-|' \
+ -e "s|lib/|lib${LIBDIRSUFFIX}/|" \
src/$PRGNAM/cmake/CheckPlatformSupport.cmake
mkdir -p build
@@ -92,9 +89,6 @@ cd -
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
-# Fix permissions on python file.
-chmod 755 $PKG/usr/bin/pyCecClient.py
-
install -D -m 0644 debian/cec-client.1 $PKG/usr/man/man1/cec-client.1
find $PKG/usr/man -type f -exec gzip -9 {} \;