void-packages/srcpkgs/libcap/template
Anthony Iliopoulos d8c8ab8909 libcap: update to 2.48.
By ericonr:
- add changelog

Closes: #28649 [via git-merge-pr]
2021-02-11 18:12:21 -03:00

50 lines
1.3 KiB
Bash

# Template file for 'libcap'
pkgname=libcap
version=2.48
revision=1
bootstrap=yes
build_style=gnu-makefile
make_install_args="SBINDIR=/usr/bin exec_prefix=/usr
LIBDIR=/usr/lib PKGCONFIGDIR=/usr/lib/pkgconfig RAISE_SETFCAP=no"
make_use_env=yes
makedepends="attr-devel"
short_desc="POSIX.1e capabilities suite"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="GPL-2.0-only"
homepage="http://sites.google.com/site/fullycapable/"
changelog="https://sites.google.com/site/fullycapable/release-notes-for-libcap"
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
checksum=4de9590ee09a87c282d558737ffb5b6175ccbfd26d580add10df44d0f047f6c2
if [ "$CROSS_BUILD" ]; then
make_build_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
fi
if [ "$CHROOT_READY" ]; then
hostmakedepends="perl"
if [ -z "$CROSS_BUILD" ]; then
hostmakedepends+=" gperf"
fi
fi
libcap-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/libcap.a
vmove usr/lib/libcap.so
vmove usr/lib/libpsx.a
vmove usr/lib/libpsx.so
vmove usr/share/man/man3
vmove usr/lib/pkgconfig
}
}
libcap-progs_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}