SHARE
TWEET

lib32-libnl

a guest Mar 4th, 2012 46 Never
  1. # Maintainer:
  2. # Contributor:
  3.  
  4. _pkgbase=libnl
  5. pkgname=lib32-${_pkgbase}
  6. pkgver=3.2.7
  7. pkgrel=1
  8. pkgdesc="Library for applications dealing with netlink sockets (32 bit)"
  9. arch=('x86_64')
  10. url="http://www.infradead.org/~tgr/libnl/"
  11. license=('GPL')
  12. depends=('lib32-glibc' "${_pkgbase}")
  13. makedepends=('gcc-multilib')
  14. options=(!libtool)
  15. source=("${url}/files/${_pkgbase}-${pkgver}.tar.gz")
  16. md5sums=('6a233a9dffa0ee3a7f6110c95c5410ab')
  17.  
  18. build() {
  19.   export CC='gcc -m32'
  20.   export CXX='g++ -m32'
  21.   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  22.  
  23.   cd "${srcdir}/${_pkgbase}-${pkgver}"
  24.   ./configure \
  25.     --prefix=/usr \
  26.     --sysconfdir=/etc \
  27.     --sbindir=/usr/bin \
  28.     --disable-static \
  29.     --libdir=/usr/lib32
  30.   make
  31. }
  32.  
  33. package() {
  34.   cd "${srcdir}/${_pkgbase}-${pkgver}"
  35.   make DESTDIR="${pkgdir}" install
  36.   rm -rf "${pkgdir}"/{etc,usr/{bin,include,share}}
  37. }
RAW Paste Data
Top