multimedia/mplayer-codecs64: Fixed VERSION string

Basically, the "essential" tarball contained dupes of what is
already in the other (earlier-dated) archive, so it is a useless
download that merely confuses the VERSION.  This appears to be
a downgrade, but in reality it's just a correction to what was
already being packaged.

Thanks to elseifthen <elseifthen@gmx.com> for the note with a
good explanation - much appreciated.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2014-07-07 01:57:08 -05:00 committed by Willy Sudiarto Raharjo
parent f94cdebc71
commit 9a5607992d
2 changed files with 8 additions and 14 deletions

View File

@ -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

View File

@ -1,14 +1,12 @@
PRGNAM="mplayer-codecs64"
VERSION="20071007"
VERSION="20061022"
HOMEPAGE="http://www.mplayerhq.hu"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="http://www.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.x86_64.rpm \
http://www.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.x86_64.rpm \
http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2"
http://www.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.x86_64.rpm"
MD5SUM_x86_64="da44bb4aa7334d890a901771e2de7f14 \
1c15660480b09bbf2e81b27a863bf0a8 \
8e1ceeec51469f5baac65e56fac709e8"
1c15660480b09bbf2e81b27a863bf0a8"
REQUIRES=""
MAINTAINER="Robby Workman"
EMAIL="rworkman@slackbuilds.org"