# HG changeset patch # User Christophe Lincoln # Date 1398346681 -7200 # Node ID 048c66ed11ecbb9a2f6e19fe9a1c94b6699b5123 # Parent 429355d87af598ca5fe02353d4f247d31e2c9fe5 Add libsearpc to bith arch + python-simplejson to ARM diff -r 429355d87af5 -r 048c66ed11ec libsearpc-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libsearpc-dev/receipt Thu Apr 24 15:38:01 2014 +0200 @@ -0,0 +1,22 @@ +# SliTaz package receipt. + +PACKAGE="libsearpc-dev" +VERSION="3.0.2" +CATEGORY="development" +SHORT_DESC="Devel headers and static lib for libsearpc." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL3" +WEB_SITE="https://github.com/haiwen/libsearpc/" +HOST_ARCH="i486 arm" + +WANTED="libsearpc" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p ${fs}/usr/lib + cp -a ${install}/usr/include ${fs}/usr + cp -a ${install}/usr/lib/*.*a ${fs}/usr/lib + cp -a ${install}/usr/lib/pkgconfig ${fs}/usr/lib +} + diff -r 429355d87af5 -r 048c66ed11ec libsearpc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libsearpc/receipt Thu Apr 24 15:38:01 2014 +0200 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="libsearpc" +VERSION="3.0.2" +CATEGORY="network" +SHORT_DESC="A simple and easy-to-use C language RPC framework." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL3" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://github.com/haiwen/libsearpc/" +WGET_URL="https://github.com/haiwen/$PACKAGE/archive/v${VERSION}.tar.gz" +HOST_ARCH="i486 arm" + +DEPENDS="python glib jansson" +BUILD_DEPENDS="wget python-dev glib-dev jansson-dev python-simplejson" + +# Rules to configure and make the package. +compile_rules() +{ + ./autogen.sh && + ./configure \ + --prefix=/usr \ + PYTHON=/usr/bin/python2 \ + $CONFIGURE_ARGS && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p ${fs}/usr/lib + cp -a ${install}/usr/bin ${fs}/usr + cp -a ${install}/usr/lib/*.so* ${fs}/usr/lib + cp -a ${install}/usr/lib/python* ${fs}/usr/lib +} + diff -r 429355d87af5 -r 048c66ed11ec mercurial/receipt --- a/mercurial/receipt Thu Apr 24 14:08:25 2014 +0200 +++ b/mercurial/receipt Thu Apr 24 15:38:01 2014 +0200 @@ -18,7 +18,8 @@ # Rules to configure and make the package. compile_rules() { - # Cross compilation hack + # Cross compilation hack to avoid using compiler wich build python + # itself. case "$ARCH" in arm*) mv /usr/bin/i486-slitaz-linux-gcc /tmp && diff -r 429355d87af5 -r 048c66ed11ec python-simplejson/receipt --- a/python-simplejson/receipt Thu Apr 24 14:08:25 2014 +0200 +++ b/python-simplejson/receipt Thu Apr 24 15:38:01 2014 +0200 @@ -10,6 +10,7 @@ TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://pypi.python.org/pypi/simplejson" WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL" +HOST_ARCH="i486 arm" DEPENDS="python" BUILD_DEPENDS="python-dev setuptools" @@ -17,9 +18,21 @@ # Rules to configure and make the package. compile_rules() { - cd $src - python setup.py build - python setup.py install --root=$DESTDIR + # Cross compilation hack to avoid using compiler wich build python + # itself. + case "$ARCH" in + arm*) + mv /usr/bin/i486-slitaz-linux-gcc /tmp && + ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ + /usr/bin/i486-slitaz-linux-gcc ;; + esac && + python setup.py build && + python setup.py install --root=$DESTDIR && + case "$ARCH" in + arm*) + rm /usr/bin/i486-slitaz-linux-gcc && + mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; + esac } # Rules to gen a SliTaz package suitable for Tazpkg.