Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Josephgbr

By: a guest on Feb 4th, 2011  |  syntax: Bash  |  size: 0.99 KB  |  hits: 108  |  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=dbus-glib
  2. pkgname=lib32-$_pkgbasename
  3. pkgver=0.92
  4. pkgrel=2
  5. pkgdesc="GLib bindings for DBUS (32 bit)"
  6. arch=('x86_64')
  7. license=('GPL' 'AFL')
  8. url="http://www.freedesktop.org/wiki/Software/DBusBindings"
  9. depends=('lib32-dbus-core' 'lib32-glib2' $_pkgbasename)
  10. makedepends=('gcc-multilib' 'pkgconfig')
  11. options=('!libtool' '!emptydirs')
  12. source=(http://dbus.freedesktop.org/releases/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
  13. md5sums=('b595b36890c4f9f8f5d5dec131c495f8')
  14.  
  15. build() {
  16.   cd "${srcdir}/${_pkgbasename}-${pkgver}"  
  17.   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  18.       --libdir=/usr/lib32 --enable-static=no --enable-bash-completion=no \
  19.       CC='gcc -m32' CXX='g++ -m32'
  20.   make
  21. }
  22. package() {
  23.   cd "${srcdir}/${_pkgbasename}-${pkgver}"
  24.   make DESTDIR="${pkgdir}" install
  25.   # Cleanup for a lib32 package
  26.   rm -rf ${pkgdir}/usr/{bin,include,share}
  27.   # Install license
  28.   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/$pkgname/COPYING
  29. }