# SliTaz package receipt. PACKAGE="libsearpc" VERSION="3.2.0" CATEGORY="network" SHORT_DESC="A simple and easy-to-use C language RPC framework." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" WEB_SITE="https://github.com/haiwen/libsearpc/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/haiwen/$PACKAGE/archive/v${VERSION}.tar.gz" DEPENDS="glib jansson python" BUILD_DEPENDS="automake glib-dev jansson-dev libtool python-dev \ python-simplejson" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;/latest/d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh && ./configure \ --prefix=/usr \ PYTHON=/usr/bin/python2 \ $CONFIGURE_ARGS && make -j 1 && 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 }