summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eduardo Castillo <hellocodelinux@gmail.com>2025-06-11 00:54:45 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-06-11 02:00:26 +0700
commit7de9904333c5338dffab141946f9fdbca94ed431 (patch)
tree3ca9a8810f7a341c805952dd0904da40102d047e
parente3140dbfff95070855982e29f0ef661fca729339 (diff)
downloadslackbuilds-7de9904333c5338dffab141946f9fdbca94ed431.tar.gz
slackbuilds-7de9904333c5338dffab141946f9fdbca94ed431.tar.xz
libraries/imbe_vocoder: Added (library from osmocom OP25).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/imbe_vocoder/README5
-rw-r--r--libraries/imbe_vocoder/imbe_vocoder.SlackBuild92
-rw-r--r--libraries/imbe_vocoder/imbe_vocoder.info10
-rw-r--r--libraries/imbe_vocoder/slack-desc19
4 files changed, 126 insertions, 0 deletions
diff --git a/libraries/imbe_vocoder/README b/libraries/imbe_vocoder/README
new file mode 100644
index 0000000000..e7e141e0a2
--- /dev/null
+++ b/libraries/imbe_vocoder/README
@@ -0,0 +1,5 @@
+imbe_vocoder library from osmocom OP25
+
+imbe_vocoder is an implementation of an IMBE vocoder
+(Improved Multi-Band Excitation) used in
+digital radio applications.
diff --git a/libraries/imbe_vocoder/imbe_vocoder.SlackBuild b/libraries/imbe_vocoder/imbe_vocoder.SlackBuild
new file mode 100644
index 0000000000..f400e90687
--- /dev/null
+++ b/libraries/imbe_vocoder/imbe_vocoder.SlackBuild
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+# Slackware build script imbe_vocoder
+
+# Copyright 2025 Eduardo Castillo <hellocodelinux@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=imbe_vocoder
+VERSION=${VERSION:-0.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+
+make CFLAGS="$SLKCFLAGS"
+
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+mkdir -p $PKG/usr/include
+
+cp libimbe_vocoder.a $PKG/usr/lib${LIBDIRSUFFIX}
+cp imbe_vocoder_api.h $PKG/usr/include
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README* COPYING* LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION 2>/dev/null || true
+
+mkdir -p $PKG/install
+cp $CWD/slack-desc $PKG/install/
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/imbe_vocoder/imbe_vocoder.info b/libraries/imbe_vocoder/imbe_vocoder.info
new file mode 100644
index 0000000000..4b46ee1e56
--- /dev/null
+++ b/libraries/imbe_vocoder/imbe_vocoder.info
@@ -0,0 +1,10 @@
+PRGNAM="imbe_vocoder"
+VERSION="0.1"
+HOMEPAGE="https://github.com/hellocodelinux/imbe_vocoder"
+DOWNLOAD="https://github.com/hellocodelinux/imbe_vocoder/archive/v0.1/imbe_vocoder-0.1.tar.gz"
+MD5SUM="87142e1d780d82a1d88653c8c9ca576d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Eduardo Castillo"
+EMAIL="hellocodelinux@gmail.com"
diff --git a/libraries/imbe_vocoder/slack-desc b/libraries/imbe_vocoder/slack-desc
new file mode 100644
index 0000000000..bcc5f4add4
--- /dev/null
+++ b/libraries/imbe_vocoder/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+imbe_vocoder: imbe_vocoder (IMBE vocoder library)
+imbe_vocoder:
+imbe_vocoder: Implementation of an IMBE vocoder - Improved Multi-Band Excitation
+imbe_vocoder: used in digital radio applications
+imbe_vocoder: based on the OP25 library from osmocom
+imbe_vocoder:
+imbe_vocoder:
+imbe_vocoder: Homepage: https://github.com/hellocodelinux/imbe_vocoder
+imbe_vocoder:
+imbe_vocoder:
+imbe_vocoder: