wok-6.x view libcap/receipt @ rev 25004
updated ntfs-3g and ntfs-3g-dev (2017.3.23 -> 2021.8.22)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:20:40 2022 +0100 (2022-05-16) |
parents | 5d79829fa876 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libcap"
4 VERSION="2.63"
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="https://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 gcc83-lib-base"
15 BUILD_DEPENDS="attr-dev gcc83 gperf pam-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Handle cross compilation.
26 case "$ARCH" in
27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;;
28 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 make \
35 CC=gcc-83 \
36 DYNAMIC=yes \
37 $ARCH_ARGS &&
38 make install \
39 RAISE_SETCAP=no \
40 DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/lib
48 cp -a $install/lib/*.so* $fs/lib
49 chmod +x $fs/lib/*
50 cook_copy_folders sbin
51 }