Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

lib32-libnl

By: a guest on May 16th, 2011  |  syntax: Bash  |  size: 0.74 KB  |  views: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. _pkgbasename=libnl
  2. pkgname=lib32-$_pkgbasename
  3. pkgver=1.1
  4. pkgrel=2
  5. pkgdesc="Library for applications dealing with netlink sockets (32 bit)"
  6. arch=('x86_64')
  7. url="http://www.infradead.org/~tgr/libnl/"
  8. license=('GPL')
  9. depends=('lib32-glibc')
  10. makedepends=('gcc-multilib')
  11. source=(ftp://ftp.archlinux.org/other/libnl/${_pkgbasename}-${pkgver}.tar.gz
  12.         fix-compilation.patch)
  13. md5sums=('ae970ccd9144e132b68664f98e7ceeb1'
  14.          'e1f5e82c8aa1b3ad025c7b588178de1e')
  15.  
  16. build() {
  17.   cd ${srcdir}/libnl-${pkgver}
  18.   patch -Np1 -i ${srcdir}/fix-compilation.patch
  19.   ./configure --prefix=/usr --libdir=/usr/lib32 CC='gcc -m32'
  20.   make
  21. }
  22.  
  23. package() {
  24.   cd ${srcdir}/libnl-${pkgver}
  25.   make DESTDIR=${pkgdir} install
  26.   rm -rf ${pkgdir}/usr/include
  27. }