updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / lib32-libtirpc / PKGBUILD
blob3ad6ff3993e581b4eb3ef03539430df29af6401c
1 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
3 _pkgbasename=libtirpc
4 pkgname=lib32-${_pkgbasename}
5 pkgver=0.2.2
6 pkgrel=2
7 pkgdesc="Transport Independent RPC library (SunRPC replacement) (lib32)"
8 arch=('x86_64')
9 url="http://libtirpc.sourceforge.net/"
10 license=('BSD')
11 depends=("${_pkgbasename}>=${pkgver}" 'lib32-libgssglue')
12 makedepends=('gcc-multilib')
13 options=('!libtool')
14 source=(http://downloads.sourceforge.net/sourceforge/libtirpc/${_pkgbasename}-${pkgver}.tar.bz2
15        libtirpc-0.2.1-fortify.patch
16        libtirpc-0.2.3rc1.patch
17        libtirpc-fix-segfault-0.2.2.patch)
18 md5sums=('74c41c15c2909f7d11d9c7bfa7db6273'
19          '2e5c067f1651469dfbbdc91d3c9c60e8'
20          'ac2a1657b44f4a99c37d8265b05b9133'
21          '5a3ab55934cad4e8b38fc90c54756472')
23 build() {
24   cd "${srcdir}/${_pkgbasename}-${pkgver}"
25   # fix http://bugs.gentoo.org/293593
26   # https://bugs.archlinux.org/task/20082
27   patch -Np1 -i ../libtirpc-0.2.1-fortify.patch
28   # add patches from fedora git to make nfs-utils compile again
29   patch -Np1 -i ../libtirpc-0.2.3rc1.patch
30   patch -Np1 -i ../libtirpc-fix-segfault-0.2.2.patch
31   sh autogen.sh
32   autoreconf -fisv
33   ./configure --prefix=/usr --libdir=/usr/lib32 --enable-gss CC="gcc -m32" CXX="g++ -m32"
34   make
37 package() {
38   cd "${srcdir}/${_pkgbasename}-${pkgver}"
39   make DESTDIR="${pkgdir}" install
41   rm -rf "${pkgdir}"/{etc,usr/{include,share}}