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