aboutsummaryrefslogtreecommitdiff
path: root/libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild
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/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild
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/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild')
-rw-r--r--libraries/zita-alsa-pcmi/zita-alsa-pcmi.SlackBuild38
1 files changed, 15 insertions, 23 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