1 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
4 pkgname=lib32-${_pkgbasename}
7 pkgdesc="Transport Independent RPC library (SunRPC replacement) (lib32)"
9 url="http://libtirpc.sourceforge.net/"
11 depends=("${_pkgbasename}>=${pkgver}" 'lib32-libgssglue')
12 makedepends=('gcc-multilib')
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')
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
33 ./configure --prefix=/usr --libdir=/usr/lib32 --enable-gss CC="gcc -m32" CXX="g++ -m32"
38 cd "${srcdir}/${_pkgbasename}-${pkgver}"
39 make DESTDIR="${pkgdir}" install
41 rm -rf "${pkgdir}"/{etc,usr/{include,share}}