wok-6.x view libcap/receipt @ rev 23843

gettext: add ncurses to depends
author Richard Dunbar <mojo@slitaz.org>
date Sat Jun 13 02:21:20 2020 -0400 (2020-06-13)
parents 0a32887d9b8c
children 675c9264bc6a
line source
1 # SliTaz package receipt.
3 PACKAGE="libcap"
4 VERSION="2.33"
5 CATEGORY="system-tools"
6 SHORT_DESC="Support for getting and setting POSIX.1e capabilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://sites.google.com/site/fullycapable/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
14 DEPENDS="attr"
15 BUILD_DEPENDS="attr-dev gperf pam-dev"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation.
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;;
22 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|INCLUDE_GPERF_OUTPUT = |&-include stddef.h |' \
29 libcap/Makefile
31 make DYNAMIC=yes ${ARCH_ARGS} &&
32 make RAISE_SETCAP=no DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/lib
40 cp -a $install/lib/*.so* $fs/lib
41 cp -a $install/sbin $fs
42 }