# HG changeset patch # User Christopher Rogers # Date 1294586795 0 # Node ID 0e5cc0711b9e46272f3adfc7784e5050b0f4b66c # Parent 1c0f2748d7e8cf2868c5b94424814d57475aa830 Fixed shell-fm to backup source and to use the right version. diff -r 1c0f2748d7e8 -r 0e5cc0711b9e shell-fm/receipt --- a/shell-fm/receipt Sun Jan 09 14:49:35 2011 +0000 +++ b/shell-fm/receipt Sun Jan 09 15:26:35 2011 +0000 @@ -6,18 +6,26 @@ SHORT_DESC="console based player for the streams provided by Last.FM" MAINTAINER="jozee@slitaz.org" DEPENDS="libmad libao taglib zlib" -BUILD_DEPENDS="libmad-dev libao-dev libao git" +BUILD_DEPENDS="libmad-dev libao-dev libao git pkg-config" WEB_SITE="http://nex.scrapping.cc/shell-fm/" # Rules to configure and make the package. compile_rules() { - mkdir $src 2> /dev/null + [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz + if [ -f $TARBALL ]; then + tar xzf $TARBALL + else + echo "Cloning revision $VERSION from git repository..." + git clone git://github.com/jkramer/shell-fm.git $PACKAGE-$VERSION + cd $PACKAGE-$VERSION && git checkout v${VERSION} + cd $WOK/$PACKAGE && tar czf $TARBALL $PACKAGE-$VERSION + fi + cd $src - git clone git://github.com/jkramer/shell-fm.git $PACKAGE - cd $PACKAGE make && - make DESTDIR=$PWD/../_pkg install + make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg.