wok rev 16506

Add libsearpc to bith arch + python-simplejson to ARM
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 15:38:01 2014 +0200 (2014-04-24)
parents 429355d87af5
children f87f9df200aa
files libsearpc-dev/receipt libsearpc/receipt mercurial/receipt python-simplejson/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libsearpc-dev/receipt	Thu Apr 24 15:38:01 2014 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libsearpc-dev"
     1.7 +VERSION="3.0.2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Devel headers and static lib for libsearpc."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="https://github.com/haiwen/libsearpc/"
    1.13 +HOST_ARCH="i486 arm"
    1.14 +
    1.15 +WANTED="libsearpc"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p ${fs}/usr/lib
    1.21 +	cp -a ${install}/usr/include ${fs}/usr
    1.22 +	cp -a ${install}/usr/lib/*.*a ${fs}/usr/lib
    1.23 +	cp -a ${install}/usr/lib/pkgconfig ${fs}/usr/lib
    1.24 +}
    1.25 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libsearpc/receipt	Thu Apr 24 15:38:01 2014 +0200
     2.3 @@ -0,0 +1,36 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libsearpc"
     2.7 +VERSION="3.0.2"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="A simple and easy-to-use C language RPC framework."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL3"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="https://github.com/haiwen/libsearpc/"
    2.14 +WGET_URL="https://github.com/haiwen/$PACKAGE/archive/v${VERSION}.tar.gz"
    2.15 +HOST_ARCH="i486 arm"
    2.16 +
    2.17 +DEPENDS="python glib jansson"
    2.18 +BUILD_DEPENDS="wget python-dev glib-dev jansson-dev python-simplejson"
    2.19 +	
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	./autogen.sh &&
    2.24 +	./configure \
    2.25 +		--prefix=/usr \
    2.26 +		PYTHON=/usr/bin/python2 \
    2.27 +		$CONFIGURE_ARGS &&
    2.28 +	make && make install
    2.29 +}
    2.30 +
    2.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.32 +genpkg_rules()
    2.33 +{
    2.34 +	mkdir -p ${fs}/usr/lib
    2.35 +	cp -a ${install}/usr/bin ${fs}/usr
    2.36 +	cp -a ${install}/usr/lib/*.so* ${fs}/usr/lib
    2.37 +	cp -a ${install}/usr/lib/python* ${fs}/usr/lib
    2.38 +}
    2.39 +
     3.1 --- a/mercurial/receipt	Thu Apr 24 14:08:25 2014 +0200
     3.2 +++ b/mercurial/receipt	Thu Apr 24 15:38:01 2014 +0200
     3.3 @@ -18,7 +18,8 @@
     3.4  # Rules to configure and make the package.
     3.5  compile_rules()
     3.6  {
     3.7 -	# Cross compilation hack
     3.8 +	# Cross compilation hack to avoid using compiler wich build python 
     3.9 +	# itself.
    3.10  	case "$ARCH" in
    3.11  		arm*)
    3.12  			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
     4.1 --- a/python-simplejson/receipt	Thu Apr 24 14:08:25 2014 +0200
     4.2 +++ b/python-simplejson/receipt	Thu Apr 24 15:38:01 2014 +0200
     4.3 @@ -10,6 +10,7 @@
     4.4  TARBALL="$SOURCE-$VERSION.tar.gz"
     4.5  WEB_SITE="http://pypi.python.org/pypi/simplejson"
     4.6  WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL"
     4.7 +HOST_ARCH="i486 arm"
     4.8  
     4.9  DEPENDS="python"
    4.10  BUILD_DEPENDS="python-dev setuptools"
    4.11 @@ -17,9 +18,21 @@
    4.12  # Rules to configure and make the package.
    4.13  compile_rules()
    4.14  {
    4.15 -	cd $src
    4.16 -	python setup.py build
    4.17 -	python setup.py install --root=$DESTDIR
    4.18 +	# Cross compilation hack to avoid using compiler wich build python 
    4.19 +	# itself.
    4.20 +	case "$ARCH" in
    4.21 +		arm*)
    4.22 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    4.23 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    4.24 +				/usr/bin/i486-slitaz-linux-gcc ;;
    4.25 +	esac &&
    4.26 +	python setup.py build  &&
    4.27 +	python setup.py install --root=$DESTDIR &&
    4.28 +	case "$ARCH" in
    4.29 +		arm*) 
    4.30 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    4.31 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    4.32 +	esac
    4.33  }
    4.34  
    4.35  # Rules to gen a SliTaz package suitable for Tazpkg.