wok view libsearpc/receipt @ rev 25506

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (21 months ago)
parents bf28cc07ebf1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libsearpc"
4 VERSION="3.2.0"
5 CATEGORY="network"
6 SHORT_DESC="A simple and easy-to-use C language RPC framework."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/haiwen/libsearpc/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/haiwen/$PACKAGE/archive/v${VERSION}.tar.gz"
14 DEPENDS="glib jansson python"
15 BUILD_DEPENDS="automake glib-dev jansson-dev libtool python-dev \
16 python-simplejson"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;/latest/d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./autogen.sh &&
31 ./configure \
32 --prefix=/usr \
33 PYTHON=/usr/bin/python2 \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p ${fs}/usr/lib
44 cp -a ${install}/usr/bin ${fs}/usr
45 cp -a ${install}/usr/lib/*.so* ${fs}/usr/lib
46 cp -a ${install}/usr/lib/python* ${fs}/usr/lib
47 }