wok view libcap/receipt @ rev 24019

syslinux: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 28 16:32:57 2021 +0000 (2021-02-28)
parents fd77b7a17bd3
children 5d79829fa876
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 chmod +x $fs/lib/*
42 cp -a $install/sbin $fs
43 }