wok-current annotate yajl/receipt @ rev 7915

Add yajl. Yet Another JSON Library.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 09 16:27:48 2011 +0000 (2011-01-09)
parents
children e06d60ae03eb
rev   line source
slaxemulator@7915 1 # SliTaz package receipt.
slaxemulator@7915 2
slaxemulator@7915 3 PACKAGE="yajl"
slaxemulator@7915 4 VERSION="1.0.11"
slaxemulator@7915 5 CATEGORY="development"
slaxemulator@7915 6 SHORT_DESC="Yet Another JSON Library"
slaxemulator@7915 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@7915 8 DEPENDS=""
slaxemulator@7915 9 BUILD_DEPENDS="cmake doxygen git"
slaxemulator@7915 10 WEB_SITE="https://github.com/lloyd/yajl"
slaxemulator@7915 11
slaxemulator@7915 12 # Rules to configure and make the package.
slaxemulator@7915 13 compile_rules()
slaxemulator@7915 14 {
slaxemulator@7915 15 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
slaxemulator@7915 16 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
slaxemulator@7915 17 if [ -f $TARBALL ]; then
slaxemulator@7915 18 tar xzf $TARBALL
slaxemulator@7915 19 else
slaxemulator@7915 20 echo "Cloning revision $VERSION from git repository..."
slaxemulator@7915 21 git clone git://github.com/lloyd/yajl.git $PACKAGE-$VERSION
slaxemulator@7915 22 cd $PACKAGE-$VERSION && git checkout ${VERSION}
slaxemulator@7915 23 cd $WOK/$PACKAGE && tar czf $TARBALL $PACKAGE-$VERSION
slaxemulator@7915 24 fi
slaxemulator@7915 25
slaxemulator@7915 26 cd $src
slaxemulator@7915 27 cmake \
slaxemulator@7915 28 -DCMAKE_INSTALL_PREFIX=/usr \
slaxemulator@7915 29 .
slaxemulator@7915 30 make DESTDIR=$PWD/_pkg install
slaxemulator@7915 31
slaxemulator@7915 32 }
slaxemulator@7915 33
slaxemulator@7915 34 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7915 35 genpkg_rules()
slaxemulator@7915 36 {
slaxemulator@7915 37 cp -a $_pkg/usr $fs
slaxemulator@7915 38 }
slaxemulator@7915 39