wok-next view libcap/receipt @ rev 19819
gstreamer0: update for the new bison version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 29 12:09:11 2017 +0200 (2017-07-29) |
parents | 8da249b2c8d7 |
children | d2dfaae2aa88 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libcap"
4 VERSION="2.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="Support for getting/setting POSIX.1e capabilities"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://sites.google.com/site/fullycapable/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
15 BUILD_DEPENDS="gperf pam-dev attr-dev perl"
16 BUILD_DEPENDS_arm="gperf pam-dev attr-dev"
17 SPLIT="libcap-dev"
19 # Handle cross compilation.
20 case "$ARCH" in
21 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i '/install.*STALIBNAME/d' libcap/Makefile
29 make $ARCH_ARGS &&
30 make RAISE_SETFCAP=no prefix=/usr install
32 chmod 755 $install/usr/lib/libcap.so
33 mkdir $install/lib
34 mv $install/usr/lib/libcap.so.* $install/lib
35 ln -sf ../../lib/$(readlink $install/usr/lib/libcap.so) \
36 $install/usr/lib/libcap.so
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 libcap)
44 copy @std
45 DEPENDS="attr"
46 ;;
47 *-dev) copy @dev;;
48 esac
49 }