wok-current rev 7914

Fixed shell-fm to backup source and to use the right version.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 09 15:26:35 2011 +0000 (2011-01-09)
parents 1c0f2748d7e8
children 02382626b067
files shell-fm/receipt
line diff
     1.1 --- a/shell-fm/receipt	Sun Jan 09 14:49:35 2011 +0000
     1.2 +++ b/shell-fm/receipt	Sun Jan 09 15:26:35 2011 +0000
     1.3 @@ -6,18 +6,26 @@
     1.4  SHORT_DESC="console based player for the streams provided by Last.FM"
     1.5  MAINTAINER="jozee@slitaz.org"
     1.6  DEPENDS="libmad libao taglib zlib"
     1.7 -BUILD_DEPENDS="libmad-dev libao-dev libao git"
     1.8 +BUILD_DEPENDS="libmad-dev libao-dev libao git pkg-config"
     1.9  WEB_SITE="http://nex.scrapping.cc/shell-fm/"
    1.10  
    1.11  # Rules to configure and make the package.
    1.12  compile_rules()
    1.13  {
    1.14 -	mkdir $src 2> /dev/null
    1.15 +	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
    1.16 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
    1.17 +	if [ -f $TARBALL ]; then
    1.18 +		tar xzf $TARBALL
    1.19 +	else
    1.20 +		echo "Cloning revision $VERSION from git repository..."
    1.21 +		git clone git://github.com/jkramer/shell-fm.git $PACKAGE-$VERSION
    1.22 +		cd $PACKAGE-$VERSION && git checkout v${VERSION}
    1.23 +		cd $WOK/$PACKAGE && tar czf $TARBALL $PACKAGE-$VERSION
    1.24 +	fi
    1.25 +	
    1.26  	cd $src
    1.27 -	git clone git://github.com/jkramer/shell-fm.git $PACKAGE
    1.28 -	cd $PACKAGE
    1.29  	make &&
    1.30 -	make DESTDIR=$PWD/../_pkg install
    1.31 +	make DESTDIR=$PWD/_pkg install
    1.32  }
    1.33  
    1.34  # Rules to gen a SliTaz package suitable for Tazpkg.