wok-next view libtirpc/receipt @ rev 20684

Add libosinfo, osinfo-db-tools, osinfo-db
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 18 15:25:03 2018 +0300 (2018-05-18)
parents 757d032c55c7
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libtirpc"
4 VERSION="1.0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Transport-Independent RPC library"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://libtirpc.sourceforge.net/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/libtirpc.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 SPLIT="libtirpc-dev"
17 compile_rules() {
18 # Fix a build issue with glibc-2.26:
19 sed -i '/stdlib.h/a#include <stdint.h>' src/xdr_sizeof.c
21 # Fix a symbol name needed by NIS libraries:
22 sed -i '/key_secret_is/s|secret|secretkey|' src/libtirpc.map
24 ./configure \
25 --disable-static \
26 --disable-gssapi \
27 $CONFIGURE_ARGS &&
28 fix libtool &&
29 make &&
30 make install || return 1
32 mkdir -p $install/lib
33 mv -v $install/usr/lib/libtirpc.so.* $install/lib
34 ln -sfv ../../lib/$(readlink $install/lib/libtirpc.so.3) $install/usr/lib/libtirpc.so
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libtirpc) copy @std;;
40 *-dev) copy @dev;;
41 esac
42 }