blob: bfebddd51861adb695bb750728500a6b0687b0d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
_pkgbasename=keyutils
pkgname=lib32-$_pkgbasename-git
pkgver=1.6.3
pkgrel=1
pkgdesc='Linux Key Management Utilities (32-bit)'
arch=('x86_64')
url='https://www.kernel.org/'
license=('GPL2' 'LGPL2.1')
depends=('lib32-glibc' 'lib32-krb5' "${_pkgbasename}")
makedepends=('git' 'gcc-multilib')
provides=(lib32-keyutils)
conflicts=(lib32-keyutils)
#validpgpkeys=('A86E54B0D5E1B4E0AB7C640FFBB7576BA7CB0B6B') # David Howells <dhowells@redhat.com>
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git")
sha512sums=('SKIP')
_commit() {
# Convert HEAD into a shortened commit id:
git rev-parse --short HEAD
}
pkgver() {
cd keyutils
# Suggestions for improvement welcome!
printf '%s.r%s.%s' \
"$(_commit)"
}
build() {
cd "${_pkgbasename}"
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 "${_pkgbasename}"
make DESTDIR="$pkgdir" install
rm -rf "${pkgdir}"/{usr/{include,share,bin,sbin},etc,{s,}bin}
}
|