mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/libcec: Updated for version 3.0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3d1844138e
commit
0db9422a6c
2 changed files with 24 additions and 19 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for libcec
|
||||
|
||||
# Copyright 2011-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
# Copyright 2011-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,7 +23,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=libcec
|
||||
VERSION=${VERSION:-2.2.0}
|
||||
VERSION=${VERSION:-3.0.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -69,29 +69,34 @@ 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 {} \;
|
||||
|
||||
autoreconf -vif
|
||||
# Fix python install folder.
|
||||
sed -i \
|
||||
-e "s|lib/|lib${LIBDIRSUFFIX}/|" -e 's|dist-|site-|' \
|
||||
src/$PRGNAM/cmake/CheckPlatformSupport.cmake
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--enable-static=no \
|
||||
--disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--build=$ARCH-slackware-linux
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -G "Unix Makefiles" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
make VERBOSE=1
|
||||
make install DESTDIR=$PKG
|
||||
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 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS ChangeLog COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="libcec"
|
||||
VERSION="2.2.0"
|
||||
VERSION="3.0.1"
|
||||
HOMEPAGE="http://libcec.pulse-eight.com/"
|
||||
DOWNLOAD="https://github.com/Pulse-Eight/libcec/archive/libcec-2.2.0.tar.gz"
|
||||
MD5SUM="006df0d807d4b72bc6859e592c7a70eb"
|
||||
DOWNLOAD="https://github.com/Pulse-Eight/libcec/archive/libcec-3.0.1.tar.gz"
|
||||
MD5SUM="216ab1a5f04300dcad9d5b5d67ef9100"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="lockdev"
|
||||
REQUIRES="lockdev platform"
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
||||
|
|
Loading…
Reference in a new issue