wok-6.x rev 8583
imported patch get/yajl
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:57 2011 +0100 (2011-02-13) |
parents | 756ed4b1daac |
children | 67231cfc5475 |
files | yajl/receipt |
line diff
1.1 --- a/yajl/receipt Sun Feb 13 22:57:57 2011 +0100 1.2 +++ b/yajl/receipt Sun Feb 13 22:57:57 2011 +0100 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.