mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
36 lines
1005 B
Bash
36 lines
1005 B
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=keyutils
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.5.5
|
|
pkgrel=1
|
|
pkgdesc="Linux Key Management Utilities (32-bit)"
|
|
arch=(x86_64)
|
|
url="http://www.kernel.org"
|
|
license=('GPL2' 'LGPL2.1')
|
|
depends=(lib32-glibc $_pkgbasename=$pkgver)
|
|
makedepends=(gcc-multilib)
|
|
source=(http://people.redhat.com/~dhowells/$_pkgbasename/$_pkgbasename-$pkgver.tar.bz2)
|
|
md5sums=('d759680b2f23c99af95938f5026f25fb')
|
|
|
|
build() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
sed -i -e 's/^\(USR\)\?LIBDIR\s*:=.*$/\1LIBDIR=\/usr\/lib32/' Makefile
|
|
make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -rf "${pkgdir}"/{usr/{include,share,bin,sbin},etc,{s,}bin}
|
|
}
|