-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
33 lines (28 loc) · 990 Bytes
/
PKGBUILD
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
# $Id: PKGBUILD 108638 2014-03-30 21:45:14Z bluewind $
# Upstream Maintainer: Tobias Powalowski <[email protected]>
# Maintainer: Fantix King <fantix.king at gmail.com>
_pkgbasename=keyutils
pkgname=libx32-$_pkgbasename
pkgver=1.5.9
pkgrel=1.1
pkgdesc="Linux Key Management Utilities (x32 ABI)"
arch=(x86_64)
url="http://www.kernel.org"
license=('GPL2' 'LGPL2.1')
depends=(libx32-glibc $_pkgbasename)
makedepends=(gcc-multilib-x32)
source=(http://people.redhat.com/~dhowells/$_pkgbasename/$_pkgbasename-$pkgver.tar.bz2)
md5sums=('7f8ac985c45086b5fbcd12cecd23cf07')
build() {
cd "$srcdir/$_pkgbasename-$pkgver"
export CC="gcc -mx32"
export CXX="g++ -mx32"
export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
sed -i -e 's/^\(USR\)\?LIBDIR\s*:=.*$/\1LIBDIR=\/usr\/libx32/' 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}
}