wok diff yajl/receipt @ rev 10122

merge
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 22:15:25 2011 +0200 (2011-05-20)
parents 02382626b067
children 0ee3214d7d96
line diff
     1.1 --- a/yajl/receipt	Sun Jan 09 16:27:48 2011 +0000
     1.2 +++ b/yajl/receipt	Fri May 20 22:15:25 2011 +0200
     1.3 @@ -8,27 +8,17 @@
     1.4  DEPENDS=""
     1.5  BUILD_DEPENDS="cmake doxygen git"
     1.6  WEB_SITE="https://github.com/lloyd/yajl"
     1.7 +WGET_URL="git|git://github.com/lloyd/yajl.git"
     1.8 +BRANCH="$VERSION"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
    1.12  {
    1.13 -	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
    1.14 -	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
    1.15 -	if [ -f $TARBALL ]; then
    1.16 -		tar xzf $TARBALL
    1.17 -	else
    1.18 -		echo "Cloning revision $VERSION from git repository..."
    1.19 -		git clone git://github.com/lloyd/yajl.git $PACKAGE-$VERSION
    1.20 -		cd $PACKAGE-$VERSION && git checkout ${VERSION}
    1.21 -		cd $WOK/$PACKAGE && tar czf $TARBALL $PACKAGE-$VERSION
    1.22 -	fi
    1.23 -
    1.24  	cd $src
    1.25  	cmake \
    1.26  		-DCMAKE_INSTALL_PREFIX=/usr \
    1.27  		.
    1.28  	make DESTDIR=$PWD/_pkg install
    1.29 -	
    1.30  }
    1.31  
    1.32  # Rules to gen a SliTaz package suitable for Tazpkg.