aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-22 01:38:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:08:06 +0700
commit5ca4df78116ab52ab5a585bff94989a32669abc5 (patch)
tree27a4afb39f62ab750acba47a4c8560386875cece /libraries
parent9fbe6e6afbb851a7f1cedafb43b1774bbb6da3c7 (diff)
libraries/zita-alsa-pcmi: Updated for version 0.3.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild38
-rw-r--r--libraries/zita-alsa-pcmi/zita-alsa-pcmi.info6
2 files changed, 18 insertions, 26 deletions
diff --git a/libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild b/libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild
index 4762c53fcc552..63d21f7e455dc 100644
--- a/libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild
+++ b/libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild
@@ -2,9 +2,8 @@
# Slackware build script for <zita-alsa-pcmi>
# Written by Michales Michaloudes korgie@gmail.com <2014>
-
PRGNAM=zita-alsa-pcmi
-VERSION=${VERSION:-0.2.0}
+VERSION=${VERSION:-0.3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,7 +40,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -50,33 +49,26 @@ 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 {} \;
-# compile libraries (mandatory).
-# fix prefix, delete ldconfig
-sed -i -e 's+/usr/local+/usr+' -e '/ldconfig/d' $TMP/$PRGNAM-$VERSION/libs/Makefile
-cd $TMP/$PRGNAM-$VERSION/libs
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
-make install DESTDIR=$PKG
-
-# compile optional demo programs (you have to compile...
-# .. twice for the library to recognized :/ )
-### sed -i -e 's+/usr/local+/usr+' $TMP/$PRGNAM-$VERSION/apps/Makefile
-### cd $TMP/$PRGNAM-$VERSION/apps
+# Thanks to ARCH Linux
+sed -e '/native/d' \
+ -e 's/ldconfig/& -N $(DESTDIR)\/$(LIBDIR)/' \
+ -i source/Makefile
+sed -e 's|\ $(BINDIR)|\ $(DESTDIR)$(BINDIR)|' apps/Makefile
-### CFLAGS="$SLKCFLAGS" \
-### CXXFLAGS="$SLKCFLAGS" \
-### make
-### make install DESTDIR=$PKG
+make -C source
+ln -sv lib$PRGNAM.so.$VERSION source/lib$PRGNAM.so
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -I../source" \
+LDFLAGS+=" -L../source" \
+make -C apps
+make -C source install DESTDIR=$PKG PREFIX=/usr SUFFIX="$LIBDIRSUFFIX"
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
cd $TMP/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING INSTALL \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/zita-alsa-pcmi/zita-alsa-pcmi.info b/libraries/zita-alsa-pcmi/zita-alsa-pcmi.info
index 991c7ac32613e..b8e98fb4a59c1 100644
--- a/libraries/zita-alsa-pcmi/zita-alsa-pcmi.info
+++ b/libraries/zita-alsa-pcmi/zita-alsa-pcmi.info
@@ -1,8 +1,8 @@
PRGNAM="zita-alsa-pcmi"
-VERSION="0.2.0"
+VERSION="0.3.2"
HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/index.html"
-DOWNLOAD="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-alsa-pcmi-0.2.0.tar.bz2"
-MD5SUM="0ba4d59abce231056e2628d081124114"
+DOWNLOAD="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-alsa-pcmi-0.3.2.tar.bz2"
+MD5SUM="1596e6b11af312e2d28ae92b10f73971"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""