# HG changeset patch # User Antoine Bodin # Date 1297634277 -3600 # Node ID e06d60ae03ebb9d9c1c0bff974a3fddbc2d4b3ed # Parent 756ed4b1daac1efcd31daa7602f7f9f4a261d881 imported patch get/yajl diff -r 756ed4b1daac -r e06d60ae03eb yajl/receipt --- a/yajl/receipt Sun Feb 13 22:57:57 2011 +0100 +++ b/yajl/receipt Sun Feb 13 22:57:57 2011 +0100 @@ -8,27 +8,17 @@ DEPENDS="" BUILD_DEPENDS="cmake doxygen git" WEB_SITE="https://github.com/lloyd/yajl" +WGET_URL="git|git://github.com/lloyd/yajl.git" +BRANCH="$VERSION" # Rules to configure and make the package. compile_rules() { - [ -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/lloyd/yajl.git $PACKAGE-$VERSION - cd $PACKAGE-$VERSION && git checkout ${VERSION} - cd $WOK/$PACKAGE && tar czf $TARBALL $PACKAGE-$VERSION - fi - cd $src cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ . make DESTDIR=$PWD/_pkg install - } # Rules to gen a SliTaz package suitable for Tazpkg.