wok-next annotate libcap/receipt @ rev 19890

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