Peaceseeker

Fixed 'lib32-a52dec' PKGBUILD

May 19th, 2013
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $Id: PKGBUILD 5600 2008-07-18 22:05:50Z jgc $
  2. # derived from a52dec package in extra:
  3. # Maintainer: Thomas Baechler <thomas@archlinux.org>
  4. # contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
  5.  
  6. _pkgbasename=a52dec
  7. pkgname=lib32-a52dec
  8. pkgver=0.7.4
  9. pkgrel=5
  10. pkgdesc="liba52 is a free library for decoding ATSC A/52 streams."
  11. arch=('x86_64')
  12. license=('GPL2')
  13. depends=('lib32-glibc' $_pkgbasename)
  14. makedepends=('gcc-multilib')
  15. options=(!libtool)
  16. source=(http://liba52.sourceforge.net/files/${_pkgbasename}-${pkgver}.tar.gz
  17. a52dec-0.7.4-build.patch)
  18. url="http://liba52.sourceforge.net/"
  19. md5sums=('caa9f5bc44232dc8aeea773fea56be80' 'fa16f224a7dceb7613824380abef0052')
  20.  
  21. build() {
  22. export CC="gcc -m32"
  23. export CXX="g++ -m32"
  24.  
  25. cd "${srcdir}/${_pkgbasename}-${pkgver}"
  26. patch -Np1 -i "${srcdir}/a52dec-0.7.4-build.patch"
  27. ./bootstrap
  28. ./configure --prefix=/usr --libdir=/usr/lib32 --enable-shared
  29. make
  30. }
  31.  
  32. package() {
  33. cd "${srcdir}/${_pkgbasename}-${pkgver}"
  34. make DESTDIR="${pkgdir}" install
  35. install -m644 liba52/a52_internal.h "${pkgdir}/usr/include/a52dec/"
  36. rm -rf "${pkgdir}"/usr/{include,bin,share}
  37. }
RAW Paste Data