wok-next view libtirpc/receipt @ rev 20465

Up LibreOffice (6.0.2), TiMidity++, jack, zstd (1.3.3)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 07 23:09:42 2018 +0200 (2018-03-07)
parents ac2ee8823dfa
children 757d032c55c7
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 --sysconfdir=/etc \
26 --disable-static \
27 --disable-gssapi \
28 $CONFIGURE_ARGS &&
29 make && make install || return 1
31 mkdir -p $install/lib
32 mv -v $install/usr/lib/libtirpc.so.* $install/lib
33 ln -sfv ../../lib/$(readlink $install/lib/libtirpc.so.3) $install/usr/lib/libtirpc.so
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 libtirpc) copy @std;;
39 *-dev) copy @dev;;
40 esac
41 }