wok view yajl/receipt @ rev 8221
imported patch cleanup_inprogress/slitaz-i18n.patch
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 27 00:20:50 2011 +0100 (2011-01-27) |
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 }