mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
29 lines
889 B
Bash
29 lines
889 B
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=libcap
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.21
|
|
pkgrel=1
|
|
pkgdesc="POSIX 1003.1e capabilities (32-bit)"
|
|
arch=(x86_64)
|
|
url="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
|
|
license=('GPL')
|
|
depends=('lib32-attr' $_pkgbasename)
|
|
makedepends=('gcc-multilib')
|
|
source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${_pkgbasename}-${pkgver}.tar.gz)
|
|
md5sums=('61966ef40f2dee8731b69db895e4548d')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
make -C libcap CC="gcc -m32" prefix=/usr lib=lib32 DESTDIR=${pkgdir} install
|
|
chmod 755 ${pkgdir}/usr/lib32/libcap.so.${pkgver}
|
|
|
|
rm -rf "${pkgdir}/usr/include"
|
|
}
|