diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-03-13 01:53:03 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-03-13 01:53:03 +0000 |
commit | 703a7f6ff670da3a9804c53b4b472ab5c5f9eae2 (patch) | |
tree | 79f4ded93205b4bb6f1de4b82da265142b7e0e97 | |
parent | 6ac0eeab4bcdd46e12a131d0bf2f4904a9085402 (diff) | |
download | slackbuilds-703a7f6ff670da3a9804c53b4b472ab5c5f9eae2.tar.gz slackbuilds-703a7f6ff670da3a9804c53b4b472ab5c5f9eae2.tar.bz2 |
mplayer: added default skin (thanks to xdoctor)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1098 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-x | media/video/mplayer/MPlayer.SlackBuild | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/media/video/mplayer/MPlayer.SlackBuild b/media/video/mplayer/MPlayer.SlackBuild index 62d017a6..f31a6e10 100755 --- a/media/video/mplayer/MPlayer.SlackBuild +++ b/media/video/mplayer/MPlayer.SlackBuild @@ -3,6 +3,9 @@ # slackbuild script for MPlayer # by rhatto at riseup.net # +# Modified: Alexandre aka xdoctor +# Date: 11/03/2007 +# Acrescimo do download de Skin e instalação if [ -s "slack-required" ]; then echo Recomended and required packages for building MPlayer are: @@ -24,7 +27,7 @@ elif [ -f /etc/slackbuildrc ]; then source /etc/slackbuildrc fi -# default settings +# default package settings PACKAGE="MPlayer" ARCH=${ARCH:=i486} VERSION=${VERSION:=1.0rc1} @@ -33,6 +36,12 @@ SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} REPOS=${REPOS:=$TMP} +# default skin settings +SKIN="Blue" +VERSION_SKIN="1.7" +SKIN_EXT="bz2" +PACKAGE_SKIN=${PACKAGE_SKIN:=$SKIN-$VERSION_SKIN.tar.$SKIN_EXT} + # ------- error codes for createpkg -------------- ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 @@ -45,11 +54,15 @@ else LIBDIR=/usr/lib fi +# URL do MPlayer RTOOL="wget" PACKAGE_EXT="bz2" SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" URL="http://www1.mplayerhq.hu/MPlayer/releases/$SRC" +# URL do Skin do MPlayer +URL_SKIN="http://www1.mplayerhq.hu/MPlayer/Skin/$SKIN-$VERSION_SKIN.tar.$SKIN_EXT" + if [ "$PACKAGE_EXT" == "bz2" ]; then tarflag="j" else @@ -59,10 +72,16 @@ fi SRC_DIR="$SRC_DIR/$PACKAGE" mkdir -p $SRC_DIR +# Download do MPlayer if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET fi +# Download do Skin +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$PACKAGE_SKIN" ]; then + wget "$URL_SKIN" -O "$SRC_DIR/$PACKAGE_SKIN" || exit +fi + TMP="$TMP/$PACKAGE" rm -rf $TMP mkdir -p $TMP @@ -119,6 +138,15 @@ for file in AUTHORS ChangeLog Copyright DOCS LICENSE README TOOLS; do cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ done +# Extracao e criacao da pasta para Skin +# criacao do diretorio +SKIN_DIR=${SKIN_DIR:=$TMP/package-$PACKAGE/$PACKAGE/usr/share/mplayer/skins} +mkdir -p usr/share/mplayer/skins +cd $SKIN_DIR +tar jxvf $SRC_DIR/$PACKAGE_SKIN +mv $SKIN default +cd $TMP/package-$PACKAGE/$PACKAGE + makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG if [ "$CLEANUP" == "yes" ]; then |