wok diff yajl/receipt @ rev 8409

Up: xorg-xrdb to 1.0.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 05 15:31:18 2011 +0000 (2011-02-05)
parents
children e06d60ae03eb
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/yajl/receipt	Sat Feb 05 15:31:18 2011 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="yajl"
     1.7 +VERSION="1.0.11"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Yet Another JSON Library"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS=""
    1.12 +BUILD_DEPENDS="cmake doxygen git"
    1.13 +WEB_SITE="https://github.com/lloyd/yajl"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
    1.19 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
    1.20 +	if [ -f $TARBALL ]; then
    1.21 +		tar xzf $TARBALL
    1.22 +	else
    1.23 +		echo "Cloning revision $VERSION from git repository..."
    1.24 +		git clone git://github.com/lloyd/yajl.git $PACKAGE-$VERSION
    1.25 +		cd $PACKAGE-$VERSION && git checkout ${VERSION}
    1.26 +		cd $WOK/$PACKAGE && tar czf $TARBALL $PACKAGE-$VERSION
    1.27 +	fi
    1.28 +
    1.29 +	cd $src
    1.30 +	cmake \
    1.31 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.32 +		.
    1.33 +	make DESTDIR=$PWD/_pkg install
    1.34 +	
    1.35 +}
    1.36 +
    1.37 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 +genpkg_rules()
    1.39 +{
    1.40 +	cp -a $_pkg/usr $fs
    1.41 +}
    1.42 +