aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild')
-rw-r--r--multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild14
1 files changed, 5 insertions, 9 deletions
diff --git a/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild b/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
index 1eb2ef6d57aca..2f5fd6380aff2 100644
--- a/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
+++ b/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
@@ -23,12 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mplayer-codecs64
-VERSION=20071007
+VERSION=20061022
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-RPMVERS="20061022"
-
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
@@ -60,19 +58,17 @@ cd $TMP
mkdir -p $PKG/usr/lib64/codecs
cd $PKG
- rpm2cpio < $CWD/mplayer-codecs-${RPMVERS}-1.${ARCH}.rpm | cpio -imdv
- rpm2cpio < $CWD/mplayer-codecs-extra-${RPMVERS}-1.${ARCH}.rpm | cpio -imdv
+ rpm2cpio < $CWD/mplayer-codecs-${VERSION}-1.${ARCH}.rpm | cpio -imdv
+ rpm2cpio < $CWD/mplayer-codecs-extra-${VERSION}-1.${ARCH}.rpm | cpio -imdv
cd - 1>/dev/null
-tar xf $CWD/essential-amd64-${VERSION}.tar.bz2
-cp -a essential-amd64-${VERSION}/* $PKG/usr/lib64/codecs
-rm -rf $PKG/usr/share
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mv $PKG/usr/lib64/codecs/README $PKG/usr/doc/$PRGNAM-$VERSION/README
+mv $PKG/usr/share/doc/*/README $PKG/usr/doc/$PRGNAM-$VERSION/README
+rm -rf $PKG/usr/share
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc