mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
audio/ocp: Updated for version 0.1.20.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
45dcf510f6
commit
67ca98017a
3 changed files with 19 additions and 39 deletions
|
@ -1,18 +1,3 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/ocp.ini.new
|
||||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Slackware build script for Open Cubic Player
|
||||
#
|
||||
# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
|
||||
# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,25 +23,23 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=ocp
|
||||
VERSION=0.1.18
|
||||
VERSION=0.1.20
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
|
@ -67,7 +65,7 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CFLAGS="$SLKCFLAGS -I/usr/include/SDL" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
|
@ -79,14 +77,11 @@ CFLAGS="$SLKCFLAGS" \
|
|||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | egrep "ELF.*executable" | cut -f 1 -d : \
|
||||
| xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find $PKG | xargs file | egrep "ELF.*shared object" | cut -f 1 -d : \
|
||||
| xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
mkdir -p $PKG/etc
|
||||
mv $PKG/usr/share/$PRGNAM-$VERSION/etc/ocp.ini $PKG/etc/ocp.ini.new
|
||||
rmdir $PKG/usr/share/$PRGNAM-$VERSION/etc/
|
||||
mv $PKG/usr/share/ocp/ultradir $PKG/usr/share/$PRGNAM-$VERSION
|
||||
rmdir $PKG/usr/share/ocp
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="ocp"
|
||||
VERSION="0.1.18"
|
||||
VERSION="0.1.20"
|
||||
HOMEPAGE="http://stian.cubic.org/project-ocp.php"
|
||||
DOWNLOAD="http://stian.cubic.org/ocp/ocp-0.1.18.tar.bz2"
|
||||
MD5SUM="1a93bf617c10d3569ec0188fbf74df8a"
|
||||
DOWNLOAD="http://stian.cubic.org/ocp/ocp-0.1.20.tar.bz2"
|
||||
MD5SUM="f34eca80239e619bff0593b8bf665f98"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Erik Hanson"
|
||||
EMAIL="erik@slackbuilds.org"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue