audio/ocp: Updated for version 0.2.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Erik Hanson 2020-05-12 00:28:06 -05:00 committed by Willy Sudiarto Raharjo
parent 9c87c39c39
commit bd78e19b1a
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 13 additions and 14 deletions

View file

@ -8,3 +8,6 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
fi
fi
if [ -x /usr/bin/install-info ]; then
chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/ocp.info.gz 2> /dev/null
fi

View file

@ -2,7 +2,7 @@
#
# Slackware build script for Open Cubic Player
#
# Copyright 2009-2011 Erik W. Hanson, Minneapolis, MN, USA
# Copyright 2009-2020 Erik W. Hanson, Minneapolis, MN, USA
# 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=ocp
VERSION=${VERSION:-0.1.21}
VERSION=${VERSION:-0.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -60,7 +60,7 @@ 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.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -69,9 +69,6 @@ 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 {} \;
sed -i "s/0.1.20/0.1.21/g" configure
sed -i "4592c2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]|3.[0-9]|3.[0-9].[0-9]-*|4.*|5.*)" configure
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@ -81,18 +78,17 @@ CFLAGS="$SLKCFLAGS" \
--infodir=/usr/info \
--build=$ARCH-slackware-linux
make -j1
make # -j1
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
mv $PKG/usr/share/ocp/ultradir $PKG/usr/share/$PRGNAM-$VERSION
rmdir $PKG/usr/share/ocp
rm -f $PKG/usr/info/dir
mv $PKG/usr/share/doc $PKG/usr
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/ocp $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="ocp"
VERSION="0.1.21"
VERSION="0.2.1"
HOMEPAGE="http://stian.cubic.org/project-ocp.php"
DOWNLOAD="http://downloads.sourceforge.net/opencubicplayer/ocp-0.1.21.tar.bz2"
MD5SUM="558a6eacfadfd9c60c97a6e9c7f83f47"
DOWNLOAD="https://stian.cubic.org/ocp/ocp-0.2.1.tar.xz"
MD5SUM="c50fa1649b4dc3331c13fbe470f147d1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""