Want more features on Pastebin? Sign Up, it's FREE!
Guest

Rafael

By: a guest on Jan 19th, 2011  |  syntax: Bash  |  size: 0.98 KB  |  views: 94  |  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=liboil
  2. pkgname=lib32-$_pkgbasename
  3. pkgver=0.3.17
  4. pkgrel=1
  5. pkgdesc="Library of simple functions that are optimized for various CPUs. (32 bit)"
  6. arch=('x86_64')
  7. license=('custom')
  8. url="http://liboil.freedesktop.org"
  9. depends=('lib32-glibc' $_pkgbasename)
  10. makedepends=('glib2' 'pkgconfig' 'docbook-xsl')
  11. options=('!libtool' '!makeflags')
  12. source=(${url}/download/${_pkgbasename}-${pkgver}.tar.gz)
  13. md5sums=('47dc734f82faeb2964d97771cfd2e701')
  14.  
  15. build() {
  16.   cd "${srcdir}/${_pkgbasename}-${pkgver}"
  17.  
  18.   ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib32 \
  19.         --build=i686-unknown-linux-gnu CC="gcc -m32"|| return 1
  20.        
  21.   make || return 1
  22. }
  23.  
  24. package() {
  25.   cd "${srcdir}/${_pkgbasename}-${pkgver}"
  26.  
  27.   make DESTDIR="${pkgdir}" install || return 1
  28.   rm -rf ${pkgdir}/usr/{bin,include,share} || return 1
  29.   install -m755 -d "${pkgdir}/usr/share/licenses/$pkgname" || return 1
  30.   install -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/" || return 1
  31. }
clone this paste RAW Paste Data