wok-current view yajl/receipt @ rev 8064

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