aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodfall <dave@slackbuilds.org>2022-02-20 10:44:44 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-21 14:29:47 +0700
commit79020fcaf690f4d5e02670191d80843c575d7746 (patch)
treeb1fc67d8d3820584e6e6277a7fcae56adf059d6b
parentf3d5b5c7640147e557a062830902db61f20d3a72 (diff)
libraries/libilbc: Updated for version 3.0.4.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libilbc/libilbc.SlackBuild45
-rw-r--r--libraries/libilbc/libilbc.info8
2 files changed, 28 insertions, 25 deletions
diff --git a/libraries/libilbc/libilbc.SlackBuild b/libraries/libilbc/libilbc.SlackBuild
index 79e01b4f9032..986366d03a85 100644
--- a/libraries/libilbc/libilbc.SlackBuild
+++ b/libraries/libilbc/libilbc.SlackBuild
@@ -24,10 +24,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libilbc
-VERSION=${VERSION:-2.0.2}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-3.0.4}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+ABSEILVER=20211102.0
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -69,8 +70,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+tar xvf $CWD/abseil-cpp-$ABSEILVER.tar.gz \
+ --transform="s|^abseil-cpp-$ABSEILVER|abseil-cpp|" \
+ --show-transformed-names
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -78,32 +83,28 @@ 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 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-static=no \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING INSTALL README.md NEWS.md \
+cp -a \
+ AUTHORS COPYING PATENTS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/libilbc/libilbc.info b/libraries/libilbc/libilbc.info
index f4d287f2eefe..8937a0457db3 100644
--- a/libraries/libilbc/libilbc.info
+++ b/libraries/libilbc/libilbc.info
@@ -1,8 +1,10 @@
PRGNAM="libilbc"
-VERSION="2.0.2"
+VERSION="3.0.4"
HOMEPAGE="https://github.com/dekkers/libilbc"
-DOWNLOAD="https://github.com/TimothyGu/libilbc/releases/download/v2.0.2/libilbc-2.0.2.tar.bz2"
-MD5SUM="a5d354249c599cb92d4a93202a54c273"
+DOWNLOAD="https://github.com/TimothyGu/libilbc/archive/v3.0.4/libilbc-3.0.4.tar.gz \
+ https://github.com/abseil/abseil-cpp/archive/20211102.0/abseil-cpp-20211102.0.tar.gz"
+MD5SUM="0aa7c3d20d4d6901ad50e42b5d12201d \
+ bdca561519192543378b7cade101ec43"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""