mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
audio/ocp: Added to 12.2 repository
This commit is contained in:
parent
8d9e3ec6cc
commit
dcbacb728a
5 changed files with 110 additions and 0 deletions
3
audio/ocp/README
Normal file
3
audio/ocp/README
Normal file
|
@ -0,0 +1,3 @@
|
|||
Open Cubic Player is a music file player. It is derived from Cubic Player 2.0
|
||||
which was developed by Niklas Beisert. It can play MOD, IT, S3M, XM and many
|
||||
other formats.
|
15
audio/ocp/doinst.sh
Normal file
15
audio/ocp/doinst.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
|
65
audio/ocp/ocp.SlackBuild
Normal file
65
audio/ocp/ocp.SlackBuild
Normal file
|
@ -0,0 +1,65 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Open Cubic Player
|
||||
# Written by Erik Hanson erik@slackbuilds.org
|
||||
|
||||
PRGNAM=ocp
|
||||
VERSION=0.1.16
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var/lib \
|
||||
--infodir=/usr/info \
|
||||
--disable-static \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
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
|
||||
|
||||
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/
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
|
||||
mv $PKG/usr/share/doc $PKG/usr/doc
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
audio/ocp/ocp.info
Normal file
8
audio/ocp/ocp.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="ocp"
|
||||
VERSION="0.1.16"
|
||||
HOMEPAGE="http://stian.cubic.org/project-ocp.php"
|
||||
DOWNLOAD="http://stian.cubic.org/ocp/ocp-0.1.16.tar.bz2"
|
||||
MD5SUM="9b2e0f4d7ddf7bc39ec026ef80187c8a"
|
||||
MAINTAINER="Erik Hanson"
|
||||
EMAIL="erik@slackbuilds.org"
|
||||
APPROVED="rworkman"
|
19
audio/ocp/slack-desc
Normal file
19
audio/ocp/slack-desc
Normal file
|
@ -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 ':'.
|
||||
|
||||
|-----handy-ruler---------------------------------------------------------|
|
||||
ocp: Open Cubic Player (A module format music file player)
|
||||
ocp:
|
||||
ocp: OPENCP is a music file player. It is derived from Cubic Player 2.0 which
|
||||
ocp: was developed by Niklas Beisert. It can play MOD, IT, S3M, XM and many
|
||||
ocp: other formats.
|
||||
ocp:
|
||||
ocp: Homepage: http://stian.lunafish.org/project-ocp.php
|
||||
ocp:
|
||||
ocp:
|
||||
ocp:
|
||||
ocp:
|
Loading…
Reference in a new issue