diff options
author | Larry Hajali <larryhaja@gmail.com> | 2017-03-22 18:58:43 -0700 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-25 00:10:42 +0000 |
commit | 3cfdfb26dd30781a97770bb60c31548e56ec7107 (patch) | |
tree | b4efabfed5f4e817907895b0acac5c9110d34185 /libraries/libcec/libcec.SlackBuild | |
parent | 4c59abbcce396a7b5a0896842cebf77c5bdc9dbc (diff) | |
download | slackbuilds-3cfdfb26dd30781a97770bb60c31548e56ec7107.tar.gz |
libraries/libcec: Updated for version 4.0.2
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'libraries/libcec/libcec.SlackBuild')
-rw-r--r-- | libraries/libcec/libcec.SlackBuild | 20 |
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 {} \; |